/* WordPress Plugin Word Counter Tool CSS - Exact Original Styling with mt-wct- prefix */

.mt-wct-wrapper {
    all: initial !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    line-height: 1.6 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.mt-wct-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.mt-wct-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 40px 24px;
    background: #ffffff;
    border: 3px solid #d1d5db;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.mt-wct-container:hover {
    border: 3px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box,
                linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899) border-box;
}

.mt-wct-gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-wct-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mt-wct-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mt-wct-description {
    color: #6b7280;
    font-size: 1.125rem;
    max-width: 48rem;
    margin: 0 auto;
}

.mt-wct-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mt-wct-card {
    background: #f8fafc;
    border: 2px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.mt-wct-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.mt-wct-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mt-wct-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.mt-wct-icon {
    width: 20px;
    height: 20px;
    color: #3b82f6;
    flex-shrink: 0;
}

.mt-wct-textarea {
    width: 100%;
    min-height: 200px;
    padding: 1.2rem;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
}

.mt-wct-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.mt-wct-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mt-wct-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mt-wct-btn-primary:hover {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.mt-wct-btn-danger:hover {
    border-color: #ef4444;
    background: #ef4444;
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.mt-wct-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mt-wct-stat-card {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.mt-wct-stat-card:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.mt-wct-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.mt-wct-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.mt-wct-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.mt-wct-stat-card:nth-child(5) {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.mt-wct-stat-card:nth-child(6) {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.mt-wct-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mt-wct-stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.mt-wct-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mt-wct-keyword-list {
    max-height: 200px;
    overflow-y: auto;
}

.mt-wct-keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.mt-wct-keyword-item:last-child {
    border-bottom: none;
}

.mt-wct-badge {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mt-wct-keyword-dropdown {
    margin-bottom: 1rem;
}

.mt-wct-keyword-dropdown select {
    padding: 0.5rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mt-wct-keyword-dropdown select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.mt-wct-keyword-dropdown select:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mt-wct-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.mt-wct-toast.show {
    transform: translateX(0);
}

.mt-wct-toast.error {
    background: #ef4444;
}

.mt-wct-social-media-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.mt-wct-social-media-item:last-child {
    border-bottom: none;
}

.mt-wct-social-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.mt-wct-character-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 120px;
}

.mt-wct-progress-bar {
    width: 60px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.mt-wct-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: all 0.3s ease;
}

.mt-wct-progress-fill.warning {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.mt-wct-progress-fill.danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.mt-wct-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 60px;
}

.mt-wct-social-recommendation {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Social Media Section - Tooltip Style */
.mt-wct-social-media-tooltip {
    position: absolute;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    color: #374151;
    max-width: 320px;
    z-index: 1000;
    display: none;
    line-height: 1.5;
    pointer-events: none;
}

.mt-wct-social-media-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.mt-wct-social-media-progress {
    position: relative;
}

.mt-wct-social-media-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.mt-wct-progress-container {
    position: relative;
    margin-bottom: 1rem;
}

.mt-wct-platform-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 12px;
}

.mt-wct-platform-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mt-wct-platform-icon.mt-wct-instagram { border-color: #e1306c; color: #e1306c; }
.mt-wct-platform-icon.mt-wct-facebook { border-color: #1877f2; color: #1877f2; }
.mt-wct-platform-icon.mt-wct-twitter { border-color: #1da1f2; color: #1da1f2; }
.mt-wct-platform-icon.mt-wct-linkedin { border-color: #0077b5; color: #0077b5; }

.mt-wct-progress-bar-full {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    position: relative;
    overflow: visible;
    margin: 2rem 0 1rem 0;
}

.mt-wct-progress-fill-dynamic {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 0%;
}

.mt-wct-progress-markers-full {
    position: relative;
    height: 20px;
    font-size: 0.75rem;
    color: #6b7280;
}

.mt-wct-progress-markers-full span {
    position: absolute;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .mt-wct-container {
        margin: 10px;
        padding: 15px;
    }

    .mt-wct-main-title {
        font-size: 1.8rem;
    }

    .mt-wct-description {
        font-size: 1rem;
    }

    .mt-wct-main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mt-wct-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .mt-wct-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mt-wct-button-group {
        gap: 0.5rem;
    }

    .mt-wct-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .mt-wct-stat-card {
        padding: 1rem;
    }

    .mt-wct-stat-number {
        font-size: 1.5rem;
    }

    .mt-wct-card {
        padding: 1rem;
    }

    /* Mobile optimizations for social media icons */
    .mt-wct-platform-icon {
        width: 20px;
        height: 20px;
        border: 1px solid #e5e7eb;
    }

    .mt-wct-platform-icon svg {
        width: 12px;
        height: 12px;
    }

    .mt-wct-progress-bar-full {
        height: 6px;
        margin: 1rem 0 0.5rem 0;
    }

    .mt-wct-progress-markers-full {
        font-size: 0.6rem;
        height: 15px;
    }

    .mt-wct-social-media-tooltip {
        max-width: 250px;
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .mt-wct-container {
        margin: 5px;
        padding: 10px;
        border-radius: 15px;
    }

    .mt-wct-main-title {
        font-size: 1.5rem;
    }

    .mt-wct-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .mt-wct-stat-card {
        padding: 0.75rem;
    }

    .mt-wct-stat-number {
        font-size: 1.25rem;
    }

    .mt-wct-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    /* Extra small mobile optimizations */
    .mt-wct-platform-icon {
        width: 16px;
        height: 16px;
    }

    .mt-wct-platform-icon svg {
        width: 10px;
        height: 10px;
    }

    .mt-wct-progress-bar-full {
        height: 4px;
    }

    .mt-wct-progress-markers-full {
        font-size: 0.5rem;
        height: 12px;
    }

    .mt-wct-social-media-tooltip {
        max-width: 200px;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }

    /* Fix text overflow on mobile */
    .mt-wct-keyword-item span:first-child {
        word-break: break-all;
        overflow-wrap: break-word;
        max-width: 60%;
    }

    .mt-wct-badge {
        flex-shrink: 0;
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .mt-wct-card {
        overflow: hidden;
    }

    .mt-wct-keyword-list {
        max-height: 150px;
    }
}

