/* Header */
.header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--outline);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--elevation-1);
}

.header .container {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    min-height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: var(--spacing-lg);
    margin-left: auto;
    margin-right: var(--spacing-lg);
}

.language-switcher {
    position: relative;
    flex-shrink: 0;
}

.logo .material-icons {
    font-size: 32px;
}

.logo h1 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    transition: background-color 0.2s ease;
}

.nav-link:hover {
    background-color: var(--outline-variant);
}

/* Language Switcher Button Styles */

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    padding: 12px 20px;
    background-color: var(--surface-color);
    border: 2px solid var(--outline);
    border-radius: 24px;
    cursor: pointer;
    font-family: inherit;
    color: var(--on-surface);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    justify-content: space-between;
}

.language-btn:hover {
    background-color: var(--outline-variant);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.language-btn:active {
    transform: translateY(0);
}

.language-globe {
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.language-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9375rem;
    text-align: left;
    white-space: nowrap;
}

.language-arrow {
    color: var(--on-surface-variant);
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.language-btn.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    right: 0;
    min-width: 180px;
    background-color: var(--surface-color);
    border: 1px solid var(--outline);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    color: var(--on-surface);
    transition: all 0.2s ease;
    position: relative;
}

.language-option:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.language-option.active {
    background-color: var(--primary-color);
    color: white;
}

.language-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.language-name-full {
    font-weight: 500;
    flex: 1;
}

.language-check {
    opacity: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: opacity 0.2s ease;
}

.language-option.active .language-check {
    opacity: 1;
    color: white;
}

/* Mobile Language Switcher - Smaller size, stays in header */
@media (max-width: 768px) {
    .language-btn {
        min-width: 90px;
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .language-globe,
    .language-arrow {
        font-size: 16px;
    }

    .language-name {
        font-size: 0.8125rem;
    }

    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 140px;
    }
}

/* Main Tool Section */
.main-tool {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

[data-theme="dark"] .main-tool {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

.tool-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.tool-header h2 {
    font-size: var(--font-size-h1);
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.tool-header p {
    font-size: 1rem;
    color: var(--on-surface-variant);
    max-width: 600px;
    margin: 0 auto;
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;  /* 让两列等高 */
}

/* Text Input Section */
.text-input-section {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--elevation-2);
    display: flex;
    flex-direction: column;

    /* 现代浏览器：宽高比1:1 */
    aspect-ratio: 1 / 1;

    /* 旧浏览器fallback */
    min-height: 650px;
}

/* 如果支持aspect-ratio，覆盖min-height */
@supports (aspect-ratio: 1 / 1) {
    .text-input-section {
        min-height: auto;
    }
}

.input-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--outline);
    background-color: var(--outline-variant);
    flex-shrink: 0;  /* 固定高度，不压缩 */
}

.toolbar {
    display: flex;
    gap: var(--spacing-xs);
}

.btn {
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-icon {
    padding: var(--spacing-sm);
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--outline);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-icon .material-icons {
    font-size: 20px;
}

.text-area {
    width: 100%;
    flex: 1;  /* 填充剩余空间 */
    min-height: 0;  /* 允许flex收缩 */
    padding: var(--spacing-lg);
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--surface-color);
    color: var(--on-surface);
    resize: vertical;  /* 允许垂直调整大小 */
    box-shadow: none;
    border-top: none;
    border-bottom: none;
}

.text-area::placeholder {
    color: var(--on-surface-variant);
    opacity: 0.7;
}

/* Stats Panel */
.stats-panel {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.stat-card {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: var(--elevation-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-3);
}

.stat-icon {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon .material-icons {
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--on-surface);
    line-height: 1.2;
}

.stat-label {
    font-size: var(--font-size-caption);
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Word Density Panel */
.word-density-panel {
    background-color: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--elevation-1);
    width: 100%;
}

.word-density-panel h3 {
    font-size: var(--font-size-h3);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    color: var(--on-surface);
}

.density-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-height: 250px;
    overflow-y: auto;
}

.density-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--outline-variant);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-body);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.density-item:hover {
    background-color: var(--outline);
    transform: translateY(-1px);
}

.density-word {
    font-weight: 500;
    color: var(--primary-color);
    flex: 1;
    margin-right: var(--spacing-md);
}

.density-count {
    font-weight: 500;
    color: var(--on-surface);
    white-space: nowrap;
}

.density-percentage {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-caption);
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

/* Content Section */
.content-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--surface-color);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content {
    line-height: 1.8;
}

.seo-content h2 {
    font-size: var(--font-size-h2);
    font-weight: 400;
    color: var(--primary-color);
    margin: var(--spacing-xl) 0 var(--spacing-lg);
}

.seo-content h3 {
    font-size: var(--font-size-h3);
    font-weight: 500;
    color: var(--on-surface);
    margin: var(--spacing-lg) 0 var(--spacing-md);
}

.seo-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.seo-content p {
    margin-bottom: var(--spacing-md);
    color: var(--on-surface);
}

.seo-content strong {
    color: var(--primary-color);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    margin-top: var(--spacing-lg);
}

.faq-item {
    border: 1px solid var(--outline);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-item h4 {
    background-color: var(--outline-variant);
    padding: var(--spacing-md);
    margin: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-item h4:hover {
    background-color: var(--outline);
}

.faq-item p {
    padding: var(--spacing-md);
    margin: 0;
    border-top: 1px solid var(--outline);
}

/* Footer */
.footer {
    background-color: var(--on-surface);
    color: var(--surface-color);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--surface-color);
}

.footer-section p {
    color: var(--outline-variant);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--outline-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--surface-color);
}

.footer-bottom {
    border-top: 1px solid var(--outline);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--outline-variant);
}

/* Social Media Styles */
.social-media {
    margin-top: var(--spacing-lg);
}

.social-media h4 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-body);
    font-weight: 500;
}

.social-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn .material-icons {
    font-size: 20px;
    color: white;
}

.social-btn.facebook {
    background-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

.social-btn.twitter {
    background-color: #000000;
}

.social-btn.twitter:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.social-btn.pinterest {
    background-color: #bd081c;
}

.social-btn.pinterest:hover {
    background-color: #a50719;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: var(--on-surface);
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--outline-variant);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Mobile Menu Overlay - Hidden on desktop */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* Mobile Menu Drawer - Hidden on desktop */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background-color: var(--surface-color);
    z-index: 999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--outline);
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-title {
    font-size: var(--font-size-h3);
    font-weight: 500;
    margin: 0;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 500;
    font-size: var(--font-size-body);
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    min-height: 44px;
}

.mobile-menu-link:hover {
    background-color: var(--outline-variant);
    border-left-color: var(--primary-color);
}

.mobile-menu-link.active {
    background-color: var(--primary-light);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-menu-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Fullscreen mode */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: var(--surface-color);
    display: flex;
    flex-direction: column;
}

.fullscreen-mode .text-area {
    flex: 1;
    min-height: auto;
    border-radius: 0;
}

.fullscreen-mode .input-header {
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tool-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .header .container {
        padding: var(--spacing-sm);
        justify-content: flex-start;
        gap: var(--spacing-sm);
    }

    .logo h1 {
        font-size: 1rem;
    }

    /* Hide desktop navigation on mobile */
    .nav {
        display: none;
    }

    /* Push language switcher to the right on mobile */
    .language-switcher {
        margin-left: auto;
    }

    /* Show mobile menu toggle button on mobile */
    .mobile-menu-toggle {
        display: flex;
        margin-left: var(--spacing-sm);
    }

    /* Enable mobile menu elements on mobile (they'll be shown/hidden via .active class) */
    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }
    
    .tool-header h2 {
        font-size: 1.5rem;
    }
    
    .main-tool {
        padding: var(--spacing-lg) 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        padding: var(--spacing-md);
        flex-direction: column;
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .text-area {
        min-height: 300px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .social-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .toolbar {
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: var(--spacing-lg) 0;
    }
}

/* Print styles */
@media print {
    .header,
    .toolbar,
    .footer {
        display: none;
    }
    
    .main-tool {
        background: none;
    }
    
    .text-area {
        border: 1px solid #000;
        min-height: auto;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for keyboard navigation */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.text-area:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* Loading animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/Error states */
.success {
    color: #4caf50;
}

.error {
    color: #f44336;
}

/* Blog Styles */
.blog-page {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.blog-post {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--elevation-1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-3);
}

.blog-post.featured {
    border-top: 4px solid var(--primary-color);
}

.blog-post.coming-soon {
    opacity: 0.7;
    border-top: 4px solid var(--on-surface-variant);
}

.post-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image .material-icons {
    font-size: 3rem;
    color: white;
}

.post-content {
    padding: var(--spacing-xl);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-caption);
    color: var(--on-surface-variant);
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-caption);
    font-weight: 500;
}

.post-content h2,
.post-content h3 {
    color: var(--on-surface);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.post-content h2 {
    font-size: var(--font-size-h3);
}

.post-content h3 {
    font-size: var(--font-size-h4);
}

.post-content p {
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.tag {
    background: var(--outline-variant);
    color: var(--on-surface-variant);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-caption);
}

.post-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.post-btn:hover {
    background: var(--primary-dark);
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--on-surface-variant);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-caption);
    font-weight: 500;
}

.blog-intro {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xxl);
    box-shadow: var(--elevation-1);
}

.intro-content h2 {
    color: var(--on-surface);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-h2);
}

.intro-content > p {
    color: var(--on-surface-variant);
    text-align: center;
    line-height: 1.6;
    margin-bottom: var(--spacing-xxl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.benefit-item .material-icons {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.benefit-item h3 {
    color: var(--on-surface);
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.benefit-item p {
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.subscribe-section {
    background: var(--outline-variant);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.subscribe-section h3 {
    color: var(--on-surface);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h3);
}

.subscribe-section p {
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* Limites Caracteres Page Styles */
.limits-guide-page {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xxl);
    align-items: center;
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xxl);
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--elevation-2);
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-caption);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-description {
    font-size: var(--font-size-h4);
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.hero-stats .stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-caption);
    color: var(--on-surface-variant);
    margin-top: var(--spacing-xs);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cards {
    position: relative;
    width: 200px;
    height: 200px;
}

.mini-card {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--elevation-3);
    animation: float 3s ease-in-out infinite;
}

.twitter-card {
    background: #1DA1F2;
    top: 0;
    left: 50px;
    animation-delay: 0s;
}

.instagram-card {
    background: linear-gradient(45deg, #E4405F, #FFDC80);
    top: 40px;
    right: 0;
    animation-delay: 0.5s;
}

.facebook-card {
    background: #1877F2;
    bottom: 40px;
    left: 0;
    animation-delay: 1s;
}

.linkedin-card {
    background: #0077B5;
    bottom: 0;
    right: 50px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.quick-nav {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-xxl);
    box-shadow: var(--elevation-1);
}

.quick-nav h3 {
    color: var(--on-surface);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h4);
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.nav-pill {
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-body);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.twitter-pill {
    background: #E8F5FD;
    color: #1DA1F2;
}

.twitter-pill:hover {
    background: #1DA1F2;
    color: white;
}

.instagram-pill {
    background: #FDEBF0;
    color: #E4405F;
}

.instagram-pill:hover {
    background: linear-gradient(45deg, #E4405F, #FFDC80);
    color: white;
}

.facebook-pill {
    background: #E7F3FF;
    color: #1877F2;
}

.facebook-pill:hover {
    background: #1877F2;
    color: white;
}

.linkedin-pill {
    background: #E8F4F8;
    color: #0077B5;
}

.linkedin-pill:hover {
    background: #0077B5;
    color: white;
}

.youtube-pill {
    background: #FFEBEE;
    color: #FF0000;
}

.youtube-pill:hover {
    background: #FF0000;
    color: white;
}

.tiktok-pill {
    background: #FFF0F5;
    color: #000000;
}

.tiktok-pill:hover {
    background: #000000;
    color: white;
}

.platforms-section {
    display: grid;
    gap: var(--spacing-xxl);
}

.platform-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--elevation-2);
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-4);
}

.platform-card.twitter {
    border-top-color: #1DA1F2;
}

.platform-card.instagram {
    border-top-color: #E4405F;
}

.platform-card.facebook {
    border-top-color: #1877F2;
}

.platform-card.linkedin {
    border-top-color: #0077B5;
}

.platform-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--outline-variant) 100%);
}

.platform-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.platform-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.twitter-icon {
    background: #1DA1F2;
}

.instagram-icon {
    background: linear-gradient(45deg, #E4405F, #FFDC80);
}

.facebook-icon {
    background: #1877F2;
}

.linkedin-icon {
    background: #0077B5;
}

.platform-info h2 {
    color: var(--on-surface);
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.platform-subtitle {
    color: var(--on-surface-variant);
    font-size: var(--font-size-caption);
}

.platform-badge {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-caption);
    font-weight: 500;
}

.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

.limit-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--background-color);
    border-radius: var(--border-radius-lg);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.limit-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.limit-item.primary {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.limit-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.limit-details h4 {
    color: var(--on-surface);
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.limit-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
}

.limit-unit {
    color: var(--on-surface-variant);
    font-size: var(--font-size-caption);
}

.platform-tips {
    background: var(--outline-variant);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.platform-tips h5 {
    color: var(--on-surface);
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.platform-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.platform-tips li {
    color: var(--on-surface-variant);
    font-size: var(--font-size-body);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
    position: relative;
}

.platform-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Academic Guide Page Styles */
.academic-guide-page {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--surface-color) 100%);
}

.academic-hero {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: var(--spacing-xxl);
    align-items: center;
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xxl);
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--elevation-2);
}

.academic-hero .hero-content {
    flex: 1;
}

.academic-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.academic-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.academic-stats .stat {
    text-align: center;
}

.academic-illustration {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.book-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.book {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.book-1 { animation-delay: 0s; }
.book-2 { animation-delay: 0.3s; }
.book-3 { animation-delay: 0.6s; }

.graduation-cap {
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

.guide-nav {
    background: var(--surface-color);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-xxl);
    box-shadow: var(--elevation-1);
}

.guide-nav h3 {
    color: var(--on-surface);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h4);
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--outline-variant);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all 0.2s ease;
    color: var(--on-surface);
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.ensayos-card:hover {
    background: var(--primary-light);
    color: white;
}

.tesis-card:hover {
    background: #4CAF50;
    color: white;
}

.articulos-card:hover {
    background: #FF9800;
    color: white;
}

.formatos-card:hover {
    background: #9C27B0;
    color: white;
}

.academic-types-section {
    display: grid;
    gap: var(--spacing-xxl);
}

.academic-card {
    background: var(--surface-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--elevation-2);
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.academic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-4);
}

.academic-card.ensayo {
    border-top-color: var(--primary-color);
}

.academic-card.tesis {
    border-top-color: #4CAF50;
}

.academic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--surface-color) 0%, var(--outline-variant) 100%);
}

.academic-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.academic-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.ensayo-icon {
    background: var(--primary-color);
}

.tesis-icon {
    background: #4CAF50;
}

.academic-info h2 {
    color: var(--on-surface);
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.academic-subtitle {
    color: var(--on-surface-variant);
    font-size: var(--font-size-caption);
}

.academic-badge {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-caption);
    font-weight: 500;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--background-color);
    border-radius: var(--border-radius-lg);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.requirement-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.requirement-item.primary {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.req-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.req-details h4 {
    color: var(--on-surface);
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.req-range {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: var(--spacing-xs);
}

.req-unit {
    color: var(--on-surface-variant);
    font-size: var(--font-size-caption);
    margin-right: var(--spacing-sm);
}

.req-note {
    display: block;
    color: var(--on-surface-variant);
    font-size: var(--font-size-caption);
    margin-top: var(--spacing-xs);
}

.academic-tips {
    background: var(--outline-variant);
    padding: var(--spacing-xl);
}

.academic-tips h5 {
    color: var(--on-surface);
    font-size: var(--font-size-body);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.tip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--surface-color);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.tip-item.special {
    background: var(--primary-color);
    color: white;
}

.tip-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.tip-item.special .tip-percentage {
    color: white;
}

.tip-section {
    font-size: var(--font-size-caption);
    color: var(--on-surface-variant);
    font-weight: 500;
}

.tip-item.special .tip-section {
    color: white;
}

/* Copy feedback */
.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}