/* Reset and base styles */
:root {
    --background-primary: #f8f9fa;
    --background-secondary: #ffffff;
    --background-tertiary: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --accent-primary: var(--text-primary);
    --accent-secondary: #10b981;
    --border-primary: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --hero-background: var(--background-secondary);
    --hero-text: var(--text-primary);
    --footer-background: var(--background-tertiary);
    --footer-text: var(--text-secondary);
    --footer-text-hover: var(--text-primary);
    --btn-text-primary: #ffffff;
    --main-page-button: #F3F4F6;
}

[data-theme="dark"] {
    --main-page-button: #212121;
    --background-primary: #111827;
    --background-secondary: #1f2937;
    --background-tertiary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --accent-primary: var(--text-primary);
    --border-primary: #4b5563;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --footer-background: #0d1117;
    --footer-text: var(--text-secondary);
    --footer-text-hover: var(--text-primary);
    --btn-text-primary: #ffffff;
    --main-page-button: var(--background-secondary);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* App layout */
.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    background-color: var(--background-secondary);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: var(--accent-primary);
    font-size: 1.75rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--background-tertiary);
    color: var(--accent-primary);
}

.nav-link.active {
    background-color: var(--accent-primary);
    color: var(--btn-text-primary);
}

.theme-switcher {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.burger-menu svg {
    color: var(--text-primary);
    width: 24px;
    height: 24px;
}

.nav-links-container .theme-switcher {
    display: block;
}

/* Main section */
.main-section {
    flex: 1;
    padding: 2rem 0;
}

/* Footer */
.footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-text-hover);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-socials a {
    display: inline-block;
}

.footer-socials img {
    width: 48px;
    height: 48px;
    transition: opacity 0.3s ease;
}

.footer-socials img:hover {
    opacity: 0.7;
}

/* Home page styles */
.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--hero-background);
    color: var(--text-primary);
    border-radius: 1rem;
    margin-bottom: 4rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: var(--main-page-button);
    color: var(--accent-primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.supported-websites {
    margin-bottom: 4rem;
    text-align: center;
}

.supported-websites h2 {
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.website-icons {
    display: flex;
    justify-content: center;
    gap: 6rem;
    align-items: center;
}

.website-icons img {
    height: 144px;
    width: 144px;
    transition: all 0.3s ease;
}

.website-icons .pinterest-icon,
.website-icons .tiktok-icon {
    position: relative;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 24px;
    transition: background-color 0.3s ease;
}

.website-icons .pinterest-icon {
    background-color: #FFFFFF;
}

.website-icons .tiktok-icon {
    background-color: #000000;
}

.website-icons .tiktok-icon:hover {
    background-color: #000000;
}

.features {
    margin-bottom: 4rem;
}

.features h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.feature-card p {
    color: var(--text-tertiary);
}

/* About page styles */
.about-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.about-hero h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.mission, .story, .values, .sponsorship {
    margin-bottom: 3rem;
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.mission h2, .story h2, .values h2, .sponsorship h2 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
}

.sponsorship p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.values-list {
    list-style: none;
    padding-left: 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.values-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

.about-page .story a,
.about-page .story a:visited {
    color: var(--text-secondary);
    text-decoration: none;
}

.about-page .story a:hover {
    text-decoration: underline;
}

/* Download page styles */
.download-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.download-hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.download-hero h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.platform-card {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
}

.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-card p {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.download-btn,
.contact-link,
.submit-btn {
    background-color: var(--accent-primary);
    color: var(--btn-text-primary);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.download-btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

.download-btn:hover,
.contact-link:hover,
.submit-btn:hover {
    background-color: var(--text-secondary);
    color: var(--btn-text-primary);
}

[data-theme="dark"] .download-btn,
[data-theme="dark"] .contact-link,
[data-theme="dark"] .submit-btn {
    background-color: #111827;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

[data-theme="dark"] .download-btn:hover,
[data-theme="dark"] .contact-link:hover,
[data-theme="dark"] .submit-btn:hover {
    background-color: var(--background-tertiary);
}

.platform-card.coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.platform-card.coming-soon .download-btn {
    cursor: not-allowed;
}

[data-theme="dark"] .hero {
    background-color: var(--background-secondary);
    color: var(--text-primary);
}

.requirements {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 3rem;
}

.requirements h2 {
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-size: 1.875rem;
}

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

.requirement-item h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.requirement-item ul {
    list-style: none;
    padding-left: 0;
}

.requirement-item li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.requirement-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.changelog {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.changelog h2 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
}

.changelog-content h3 {
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
}

.changelog-content ul {
    list-style: none;
    padding-left: 1rem;
}

.changelog-content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.changelog-content li:before {
    content: "•";
    position: absolute;
    left: -1rem;
    color: var(--accent-secondary);
}

/* Contact page styles */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.contact-hero h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-block;
}

.contact-form-section {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 3rem;
}

.contact-form-section h2 {
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-size: 1.875rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--background-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 15%, transparent);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 0.75rem 2rem;
}

.office-info {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.office-info h2 {
    color: var(--accent-primary);
    margin-bottom: 2rem;
    font-size: 1.875rem;
}

.office-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.office-item h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.office-item p {
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

/* Documentation page styles */
.documentation-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.doc-section {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 2rem;
}

.doc-section h2 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
}

.doc-section h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.doc-section ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.doc-section a,
.doc-section a:visited {
    color: var(--text-primary);
    text-decoration: none;
}

.doc-section a:hover {
    text-decoration: underline;
}

.screenshot-placeholder {
    background-color: var(--background-tertiary);
    border: 2px dashed var(--border-primary);
    padding: 2rem;
    text-align: center;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.screenshot-placeholder p {
    color: var(--text-tertiary);
    font-style: italic;
}

/* Collapsible sections */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chevron {
    width: 1rem;
    height: 1rem;
    border-style: solid;
    border-width: 0.2em 0.2em 0 0;
    transform: rotate(135deg);
    transition: transform 0.3s ease;
}

.chevron.open {
    transform: rotate(-45deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    padding-top: 1rem;
}

/* Image gallery styles */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    cursor: pointer;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 150px;
    height: auto;
    display: block;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--background-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Visually hidden class for SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links-container {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--background-secondary);
        z-index: 1000;
        padding: 6rem 2rem 0;
    }

    .nav-links-container.open {
        display: flex;
    }

    .nav-links-container .nav-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    .nav-links-container .nav-link {
        font-size: 1.5rem;
    }

    .nav-links-container .theme-switcher {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .nav-links-container .theme-switcher {
        margin-top: 2rem;
        display: block;
    }

    .website-icons {
        flex-direction: column;
        gap: 2rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer {
        position: static;
        margin-top: auto;
        padding: 2rem 0;
    }

    .main-section {
        padding-bottom: 0;
    }

    .nav-links {
        display: none;
    }
}

.privacy-policy-page,
.terms-of-service-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
