/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb li {
    color: #666;
}

.breadcrumb li:not(:last-child)::after {
    content: "|";
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #2c3e50;
    font-weight: 600;
}

/* Language Selector Dropdown */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-toggle {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 120px;
    user-select: none;
}

.language-toggle:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.language-toggle svg {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.language-dropdown.open .language-toggle svg {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    overflow: hidden;
}

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

.lang-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #657786;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    border-bottom: 1px solid #f0f3f6;
}

.lang-link:last-child {
    border-bottom: none;
}

.lang-link:hover {
    color: #3498db;
    background-color: #f8f9fa;
}

.lang-link.active {
    color: #3498db;
    background-color: #e3f2fd;
    font-weight: 600;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

.flag-icon {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    vertical-align: middle;
}

.flag-icon.us {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIGZpbGw9IiNiMjIyMzQiLz4KICA8cmVjdCB5PSIxLjUiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxLjUiIGZpbGw9IndoaXRlIi8+CiAgPHJlY3QgeT0iNC41IiB3aWR0aD0iMTgiIGhlaWdodD0iMS41IiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHk9IjcuNSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjEuNSIgZmlsbD0id2hpdGUiLz4KICA8cmVjdCB5PSIxMC41IiB3aWR0aD0iMTgiIGhlaWdodD0iMS41IiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHk9IjEzLjUiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxLjUiIGZpbGw9IndoaXRlIi8+CiAgPHJlY3QgeT0iMTYuNSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjEuNSIgZmlsbD0id2hpdGUiLz4KICA8cmVjdCB3aWR0aD0iNy41IiBoZWlnaHQ9IjkiIGZpbGw9IiMzYzNiNmUiLz4KPC9zdmc+');
}

.flag-icon.es {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iNCIgZmlsbD0iI2MzMGEzZSIvPgogIDxyZWN0IHk9IjQiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxMCIgZmlsbD0iI2ZmYzQwMCIvPgogIDxyZWN0IHk9IjE0IiB3aWR0aD0iMTgiIGhlaWdodD0iNCIgZmlsbD0iI2MzMGEzZSIvPgo8L3N2Zz4=');
}

@media (max-width: 768px) {
    .language-selector {
        position: static;
        top: auto;
        right: auto;
        margin: 15px 0 20px auto;
        width: fit-content;
        display: flex;
        justify-content: flex-end;
    }
    
    .language-toggle {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 110px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }
    
    .language-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 120px;
    }
}

/* Container and layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex: 1;
    position: relative;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 2px solid #ecf0f1;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

/* SEO Content Styles */
.seo-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
    border: 1px solid #e9ecef;
}

.seo-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.seo-content > p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.benefit-item {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
}

.benefit-item h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* About Section Styles */
.about-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.about-content {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}



/* AdSense placeholder styles */





/* Blog Styles */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.blog-description {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.blog-content-full {
    margin-top: 30px;
}

.blog-posts-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.post-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.post-header h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-header h2 a:hover {
    color: #3498db;
}

.post-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-date, .post-category, .read-time {
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.post-excerpt p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.sidebar-widget h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.category-list, .recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li, .recent-posts li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child, .recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-list a, .recent-posts a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-list a:hover, .recent-posts a:hover {
    color: #3498db;
}

/* Blog Article Styles */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.article-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.article-date, .article-category, .read-time {
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.article-content {
    line-height: 1.8;
    color: #444;
}

.article-content h2 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin: 30px 0 15px 0;
    padding-top: 20px;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 25px 0 12px 0;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.article-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-blog, .next-article {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-to-blog:hover, .next-article:hover {
    color: #2980b9;
}

@media (max-width: 768px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-posts-full {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-article {
        padding: 20px;
    }
    
    .post-meta, .article-meta {
        justify-content: center;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8e8e8;
    border-color: #aaa;
}

/* Input section */
.input-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    line-height: 1.5;
}

textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea::placeholder {
    color: #999;
}

/* Counters section */
.counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.counter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.counter-label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.counter-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    min-width: 60px;
    text-align: right;
}

/* Actions section */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.clear-btn, .export-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.export-btn {
    background-color: #27ae60;
}

.clear-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.export-btn:hover {
    background-color: #219a52;
    transform: translateY(-1px);
}

.clear-btn:active, .export-btn:active {
    transform: translateY(0);
}

.clear-btn svg, .export-btn svg {
    width: 16px;
    height: 16px;
}

/* Keyword Analysis Section */
.keyword-analysis {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.keyword-analysis h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.keywords-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.keyword-item {
    background: white;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keyword-word {
    font-weight: 600;
    color: #333;
}

.keyword-stats {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.keyword-count {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.keyword-density {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Features section */
.features {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.features h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.features ul {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 8px 0;
    position: relative;
    padding-left: 20px;
    color: #555;
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.features h3 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

/* Additional Tools Section */
.additional-tools-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.additional-tools-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.tool-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.tool-link svg {
    color: #3498db;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
}

.separator {
    margin: 0 10px;
    color: #7f8c8d;
}

.copyright {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px 15px;
        border-radius: 6px;
        margin-top: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    /* Breadcrumb navigation responsive */
    .breadcrumb {
        margin-bottom: 15px;
    }
    
    .breadcrumb ol {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .breadcrumb li:not(:last-child)::after {
        margin: 0 6px;
    }
    
    /* Tool navigation responsive */
    .tool-navigation {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 25px;
        display: flex !important;
        align-items: center;
    }
    
    .tool-nav-link {
        font-size: 0.9rem;
        padding: 4px 2px;
        white-space: nowrap;
    }
    
    .tool-separator {
        margin: 0 4px;
        color: #ccc;
    }
    
    .counters {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .counter-item {
        padding: 12px;
    }
    
    .counter-value {
        font-size: 1.3rem;
    }
    
    textarea {
        min-height: 150px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    

@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .counters {
        padding: 10px;
        gap: 10px;
    }
    
    .counter-item {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .counter-value {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* Print styles */
@media print {

/* High contrast mode support */
@media (prefers-contrast: high) {
    .counter-item {
        border: 2px solid #000;
    }
    

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

/* Tool Navigation Styles */
.tool-navigation {
    margin: 20px auto;
    padding: 20px;
    display: flex !important;
    align-items: center;
    font-size: 1.1rem;
    flex-wrap: wrap;
    max-width: 100%;
    background-color: #3498db !important;
    border: 3px solid #2980b9 !important;
    justify-content: center;
    position: relative;
    z-index: 1000;
}

.tool-nav-link {
    text-decoration: none;
    color: white !important;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tool-nav-link:hover {
    text-decoration: underline;
}

.tool-nav-link.active {
    color: #2c3e50;
    font-weight: 600;
}

.tool-separator {
    margin: 0 8px;
    color: white !important;
    font-weight: bold;
}

/* Platform Selection Styles */
.platform-selection {
    margin-bottom: 30px;
}

.platform-selection h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.platform-btn {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.platform-btn:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.platform-btn.active {
    border-color: #3498db;
    background-color: #e3f2fd;
    color: #3498db;
    font-weight: 600;
}

/* Character Info Styles */
.character-info {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.platform-info h4 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.platform-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.stat-label {
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.stat-limit {
    color: #999;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.progress-fill.warning {
    background-color: #FF9800;
}

.progress-fill.danger {
    background-color: #F44336;
}

.remaining-chars {
    font-weight: 500;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.remaining-chars.safe {
    color: #4CAF50;
    background-color: #E8F5E8;
}

.remaining-chars.warning {
    color: #FF9800;
    background-color: #FFF3E0;
}

.remaining-chars.danger {
    color: #F44336;
    background-color: #FFEBEE;
}

/* Text Formatter Styles */
.formatter-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.input-output-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.text-area-container {
    display: flex;
    flex-direction: column;
}

.text-area-container label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.text-area-container textarea {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.text-area-container textarea:focus {
    outline: none;
    border-color: #3498db;
}

.text-area-container textarea[readonly] {
    background-color: #f8f9fa;
}

.formatting-options h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.format-btn {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.format-btn:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.swap-btn {
    background-color: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.swap-btn:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.copy-btn {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.copy-btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.copy-btn.copied {
    background-color: #6c757d;
    border-color: #6c757d;
}

@media (max-width: 768px) {
    .input-output-section {
        grid-template-columns: 1fr;
    }
    
    .platform-buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .format-buttons {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Pagination Styles */
.pagination {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.pagination-info {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.page-link:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.page-link.current {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    cursor: default;
    font-weight: 700;
}

.page-link.current:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: none;
}

.page-link.next,
.page-link.prev {
    padding: 8px 16px;
    min-width: 80px;
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: 600;
}

.page-link.next:hover,
.page-link.prev:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

@media (max-width: 768px) {
    .pagination-nav {
        gap: 8px;
    }
    
    .page-link {
        min-width: 40px;
        height: 40px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .page-link.next,
    .page-link.prev {
        min-width: 70px;
        padding: 6px 12px;
    }
    
    .brand-name {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .brand-header {
        gap: 6px;
        margin-bottom: 20px;
        padding: 12px 0;
    }
}

/* Additional Tools Section */
.additional-tools-section {
    padding: 2rem 0;
    background: #f0f9ff;
    border-radius: 12px;
    margin: 2rem 0;
}

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

.tool-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-item h3 a {
    color: #2563eb;
    text-decoration: none;
    font-size: 1.1rem;
}

.tool-item h3 a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Enhanced About Section */
.enhanced-about-section {
    padding: 2rem 0;
    background: #fefefe;
    border-radius: 12px;
    margin: 2rem 0;
}

.enhanced-about-content {
    line-height: 1.7;
    color: #374151;
}

.enhanced-features {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.enhanced-features h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.enhanced-features ul {
    list-style: none;
    padding: 0;
}

.enhanced-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.enhanced-features li:last-child {
    border-bottom: none;
}

.enhanced-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 2rem 0;
    background: #f8fafc;
    border-radius: 12px;
    margin: 2rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: #4b5563;
    line-height: 1.6;
}
