/* Base Styles */
:root {
    --primary-color: #405de6;
    --secondary-color: #5851db;
    --accent-color: #fd1d1d;
    --light-color: #f5f5f5;
    --dark-color: #333333;
    --text-color: #4a4a4a;
    --border-radius: 5px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    line-height: 1.3;
}

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a.active, 
nav ul li a:hover {
    color: var(--primary-color);
}

/* Mobile Nav */
.mobile-nav-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 120px 0 60px;
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-btn {
    background-color: white;
    color: var(--primary-color);
    font-weight: bold;
}

.cta-btn:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Generator Section */
.generator {
    background-color: white;
    text-align: center;
    padding: 80px 0;
}

.generator h2 {
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.section-subtitle {
    color: white;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.generator-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease-out;
}

.generator-options,
.generator-result {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generator-options:hover,
.generator-result:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.generator-options .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.generator-options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.generator-options textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.generator-options textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 93, 230, 0.1);
}

.generator-options select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: white;
    font-family: inherit;
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.generator-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(64, 93, 230, 0.1);
}

.emoji-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.emoji-group label {
    margin-bottom: 0;
}

.toggle-container {
    width: 100px;
}

.tone-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tone-btn {
    padding: 8px 14px;
    background-color: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tone-btn:hover {
    background-color: #eef1ff;
    color: var(--primary-color);
}

.tone-btn.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.generate-main-btn {
    width: 100%;
    margin-top: 15px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.generate-main-btn:hover {
    transform: translateY(-2px);
}

.generator-result {
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.generator-result h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #333;
}

.bio-output {
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
    min-height: 180px;
    height: 180px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    word-wrap: break-word;
    animation: fadeIn 0.5s ease-out;
    color: #333;
    overflow-y: auto;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.copy-btn, .generate-btn, .save-btn {
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.copy-btn {
    background-color: #f1f5fd;
    color: var(--primary-color);
    border: 1px solid #e2e8f0;
}

.copy-btn:hover:not(:disabled) {
    background-color: #e2e8f0;
    color: var(--primary-color);
}

.generate-btn, .save-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e2e8f0;
}

.generate-btn:hover:not(:disabled), .save-btn:hover:not(:disabled) {
    background-color: #e2e8f0;
}

.save-btn.saved {
    background-color: #eef6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Saved Bios */
.saved-bios-container {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.saved-bios {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.saved-bio {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.saved-bio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.85rem;
}

.saved-date, .saved-platform, .saved-tone {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.saved-platform {
    font-weight: 500;
}

.saved-platform i {
    font-size: 1rem;
}

/* Platform-specific header colors */
.saved-bio[data-platform="instagram"] .saved-platform {
    color: #e1306c;
}

.saved-bio[data-platform="tiktok"] .saved-platform {
    color: #000000;
}

.saved-bio[data-platform="twitter"] .saved-platform {
    color: #1DA1F2;
}

.saved-bio[data-platform="facebook"] .saved-platform {
    color: #4267B2;
}

.delete-bio {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.delete-bio:hover {
    color: #e74c3c;
}

.saved-bio-text {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-line;
    color: #333;
}

.saved-bio-actions {
    display: flex;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
    gap: 0.5rem;
}

.saved-bio-actions button {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.use-bio {
    color: var(--primary-color);
}

.use-bio:hover {
    background-color: #eef1ff;
    border-color: var(--primary-color);
    color: white;
}

.copy-saved-bio {
    color: #666;
}

.copy-saved-bio:hover {
    background-color: #f5f5f5;
    border-color: #333;
}

@media (max-width: 768px) {
    .saved-bio-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .saved-date, .saved-platform, .saved-tone {
        font-size: 0.75rem;
    }
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    min-height: 120px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(64, 93, 230, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-indicator p {
    color: #666;
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Features Section */
.features {
    background-color: var(--light-color);
    text-align: center;
}

.features h2 {
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Blog Section */
.blog {
    background-color: white;
    padding: 80px 0;
    text-align: center;
}

.blog h2 {
    margin-bottom: 10px;
}

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

.blog-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5; /* Placeholder background */
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background-color: #f1f5fd;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
}

.blog-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.blog-link i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.blog-link:hover i {
    transform: translateX(3px);
}

.blog-cta {
    margin-top: 50px;
}

/* FAQ Section */
.faq {
    background-color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.faq h2 {
    margin-bottom: 10px;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: white;
    border: none;
    padding: 20px 25px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #333;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question span {
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 1000px;
}

.faq-answer p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Section */
.about {
    background-color: var(--light-color);
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Contact Section */
.contact {
    background-color: white;
    text-align: center;
}

.contact p {
    margin-bottom: 30px;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo, 
.footer-links,
.footer-social {
    margin-bottom: 20px;
    min-width: 200px;
}

.footer-logo span {
    color: var(--primary-color);
}

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

.footer-links a {
    color: #bbbbbb;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .generator-container {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .generator-options, 
    .generator-result {
        width: 100%;
    }
    
    .emoji-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .emoji-group .toggle-container {
        width: 100%;
        margin-top: 10px;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .action-buttons button {
        flex: 1;
        min-width: 120px;
        margin-bottom: 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.sample-descriptions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sample-descriptions span {
    font-size: 0.85rem;
    color: #777;
    margin-right: 2px;
}

.sample-btn {
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-btn:hover {
    background-color: #eef1ff;
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.generate-main-btn:active {
    transform: scale(0.98);
}

.saved-bio-item {
    animation: fadeIn 0.5s ease-out;
}

.tone-btn.active {
    animation: pulse 0.3s ease;
}

/* Loading animations */
@keyframes loadingPulse {
    0% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 5px 30px rgba(64, 93, 230, 0.2);
    }
    100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }
}

.loading-pulse {
    animation: loadingPulse 1.5s infinite ease-in-out;
}

.spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.bio-feedback {
    margin: 15px 0;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    min-height: 70px;
}

.bio-feedback p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #666;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.feedback-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-btn:hover {
    transform: scale(1.2);
}

.feedback-btn[data-rating="1"]:hover {
    color: #e74c3c;
}

.feedback-btn[data-rating="2"]:hover {
    color: #f39c12;
}

.feedback-btn[data-rating="3"]:hover {
    color: #2ecc71;
}

.feedback-btn.selected[data-rating="1"] {
    color: #e74c3c;
}

.feedback-btn.selected[data-rating="2"] {
    color: #f39c12;
}

.feedback-btn.selected[data-rating="3"] {
    color: #2ecc71;
}

.tone-suggestion {
    background-color: #f8f9ff;
    border-left: 3px solid var(--primary-color);
    padding: 10px 15px;
    margin-bottom: 15px;
    min-height: 45px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease-out;
}

.tone-suggestion i {
    color: #f1c40f;
    margin-right: 10px;
    font-size: 1.1rem;
}

.tone-suggestion span {
    flex-grow: 1;
}

.tone-suggestion strong {
    color: var(--primary-color);
}

.tone-suggestion button {
    background-color: #eef1ff;
    color: var(--primary-color);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tone-suggestion button:hover {
    background-color: var(--primary-color);
    color: white;
}

.feedback-thanks {
    color: #2ecc71 !important;
    font-weight: 500;
    animation: fadeIn 0.5s ease-out;
}

.bio-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #888;
    animation: fadeIn 0.5s ease-out;
    min-height: 20px;
}

.char-counter span, .emoji-counter span {
    font-weight: 500;
    color: #666;
}

.char-counter.warning span {
    color: #e67e22;
}

.char-counter.danger span {
    color: #e74c3c;
}

.advanced-options {
    margin-top: 15px;
    margin-bottom: 20px;
}

.advanced-options summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 0;
    user-select: none;
    transition: all 0.2s ease;
    text-align: center;
}

.advanced-options summary:hover {
    color: var(--secondary-color);
}

.advanced-options details {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advanced-options details[open] {
    padding-bottom: 10px;
    animation: fadeIn 0.3s ease-out;
}

.advanced-options .form-group {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.advanced-options label {
    flex: 0 0 150px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.advanced-options input[type="range"] {
    flex: 1;
    min-width: 150px;
    margin-right: 10px;
    accent-color: var(--primary-color);
}

.advanced-options span {
    font-weight: 500;
    color: var(--primary-color);
    min-width: 30px;
}

.advanced-options .form-group.platform-specific {
    min-height: 75px; /* Reserve space for platform specific options */
}

/* Error styles */
.error-message {
    padding: 15px;
    text-align: center;
    color: #666;
}

.error-message i {
    color: #e74c3c;
    font-size: 24px;
    margin-bottom: 10px;
}

.error-details {
    font-size: 14px;
    margin-bottom: 20px;
    color: #888;
}

.fallback-message {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.fallback-bio {
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid #3498db;
    font-style: italic;
    text-align: center;
    line-height: 1.6;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease-out;
}

.similarity-warning {
    background-color: #fff8e6;
    border-left: 3px solid #f1c40f;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

.similarity-warning i {
    color: #f1c40f;
    margin-right: 10px;
    font-size: 1.1rem;
}

.retry-btn {
    margin: 15px auto 5px;
    background-color: #f5f5f5;
    color: #555;
    border: 1px solid #e1e1e1;
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeIn 0.5s ease-out;
}

.retry-btn:hover {
    background-color: #e8f4f8;
    color: #3498db;
    border-color: #bde2f2;
}

.retry-btn i {
    font-size: 0.8rem;
}

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

/* Legal Pages Styles */
.legal-content {
    padding: 120px 0 80px;
}

.legal-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.last-updated {
    font-style: italic;
    color: #777;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-section h3 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: var(--accent-color);
}

.legal-section p, 
.legal-section ul, 
.legal-section ol {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-section ul, 
.legal-section ol {
    margin-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--accent-color);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th, 
.cookie-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.cookie-table th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

@media screen and (max-width: 768px) {
    .legal-content {
        padding: 100px 0 60px;
    }
    
    .legal-content h1 {
        font-size: 2.2rem;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
    
    .cookie-table, 
    .cookie-table thead, 
    .cookie-table tbody, 
    .cookie-table th, 
    .cookie-table td, 
    .cookie-table tr {
        display: block;
    }
    
    .cookie-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .cookie-table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
    }
    
    .cookie-table td {
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
    }
    
    .cookie-table td:before {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
    
    .cookie-table td:nth-of-type(1):before { content: "Name"; }
    .cookie-table td:nth-of-type(2):before { content: "Purpose"; }
    .cookie-table td:nth-of-type(3):before { content: "Duration"; }
    .cookie-table td:nth-of-type(4):before { content: "Type"; }
}

/* Platform Selection Tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    background-color: white;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.platform-tab i {
    font-size: 1.2rem;
}

.platform-tab.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.platform-tab:hover:not(.active) {
    border-color: #b3d1ff;
    background-color: #b3d1ff;
    color: white;
}

/* Platform-specific Instagram */
.platform-tab[data-platform="instagram"].active {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
    border-color: #c13584;
}

/* Platform-specific TikTok */
.platform-tab[data-platform="tiktok"].active {
    background: linear-gradient(45deg, #000000, #25F4EE);
    border-color: #25F4EE;
}

/* Platform-specific Twitter */
.platform-tab[data-platform="twitter"].active {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
}

/* Platform-specific Facebook */
.platform-tab[data-platform="facebook"].active {
    background-color: #4267B2;
    border-color: #4267B2;
}

/* Platform-specific form elements */
.platform-specific {
    display: none;
}

.platform-specific.show {
    display: block;
}

/* Platform context in labels */
.platform-context {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

/* Platform Preview */
.platform-preview {
    display: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 15px; /* Minimal height placeholder for platform color */
}

.platform-preview.active {
    display: block;
}

/* Instagram Preview */
.instagram-preview {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

/* TikTok Preview */
.tiktok-preview {
    background: linear-gradient(45deg, #000000, #25F4EE);
}

/* Twitter Preview */
.twitter-preview {
    background-color: #1DA1F2;
}

/* Facebook Preview */
.facebook-preview {
    background-color: #4267B2;
}

/* Platform Info in Bio Stats */
.platform-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

#currentPlatform {
    font-weight: 600;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .platform-tabs {
        gap: 0.3rem;
    }
    
    .platform-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .platform-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .platform-tab {
        width: calc(50% - 0.3rem);
        justify-content: center;
    }
} 