/* Year in Color - Website Styles */

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

:root {
    --bg-color: #ffffff;
    --surface-color: #f5f5f7;
    --card-color: #ffffff;
    --text-color: #000000;
    --text-muted: #6e6e73;
    --accent-color: #4CAF50;
    --accent-secondary: #2196F3;
    --ad-bg: #f5f5f7;
    --ad-border: rgba(0, 0, 0, 0.1);
    --max-width: 1400px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.site-header {
    background: var(--bg-color);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--ad-border);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

/* Menu Button */
.menu-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: none;
    border: 1.5px solid var(--ad-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    z-index: 1001;
}

.menu-btn:hover {
    background-color: var(--surface-color);
    border-color: rgba(0, 0, 0, 0.18);
}

.menu-btn.open {
    background-color: var(--surface-color);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.menu-line {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger to X animation */
.menu-btn.open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn.open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Dropdown */
.menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: var(--card-color);
    border: 1px solid var(--ad-border);
    border-radius: 14px;
    padding: 6px;
    min-width: 230px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: var(--surface-color);
}

.menu-item-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.menu-item:hover .menu-item-icon {
    color: var(--accent-secondary);
}

.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #4CAF50, #2196F3, #9C27B0, #FFEB3B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.site-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Main Content */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Ad Containers */
.ad-container {
    background-color: var(--ad-bg);
    border: 1px dashed var(--ad-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ad-placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-banner {
    width: 100%;
    min-height: 90px;
    padding: 20px;
}

.ad-top {
    margin-bottom: 20px;
}

.ad-sidebar {
    display: none; /* Hidden on mobile */
    width: 160px;
    min-width: 160px;
    height: 600px;
    flex-shrink: 0;
}

.ad-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* App Section - Three Column Layout */
.app-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.app-wrapper {
    flex: 1;
    max-width: 800px;
    min-height: 680px;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 8px 40px rgba(0, 0, 0, 0.06);
}

.app-frame {
    width: 100%;
    height: 680px;
    border: none;
    display: block;
}

/* Content with Sidebar Layout */
.content-with-sidebar {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.content-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ad-sidebar-content {
    display: none;
    width: 160px;
    min-width: 160px;
    flex-shrink: 0;
    min-height: 600px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* Content Sections */
.content-section {
    background-color: var(--card-color);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--ad-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #2196F3, #9C27B0, #2196F3);
    background-size: 300% 300%;
    animation: lava-rotate 8s ease-in-out infinite;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

@keyframes lava-rotate {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.step-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-screenshot {
    background-color: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ad-border);
}

.step-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.step-screenshots-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit {
    background-color: var(--surface-color);
    padding: 32px 28px;
    border-radius: 16px;
    text-align: center;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.benefit p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-screenshot {
    background-color: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ad-border);
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-screenshots-triple {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--surface-color);
    padding: 24px;
    border-radius: 12px;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Section Intro Text */
.section-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 640px;
    margin: -10px auto 30px;
}

/* Learn More Links */
.section-learn-more {
    text-align: center;
    margin-top: 28px;
}

.learn-more-link {
    display: inline-block;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 24px;
    border: 1.5px solid var(--ad-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.learn-more-link:hover {
    background-color: var(--surface-color);
    border-color: rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.cta-section {
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-primary {
    background: linear-gradient(135deg, #333, #222);
    color: white;
}

.cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.cta-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1.5px solid var(--ad-border);
}

.cta-secondary:hover {
    background-color: var(--surface-color);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Title Link (subpages) */
.site-title-link {
    text-decoration: none;
}

/* Footer */
.site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--ad-border);
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(0, 0, 0, 0.25);
}

.footer-nav {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Responsive Design */

/* Tablet and up - Show sidebar ads */
@media (min-width: 1024px) {
    .ad-sidebar {
        display: flex;
    }

    .ad-sidebar-content {
        display: flex;
    }

    .app-wrapper {
        min-height: 680px;
    }

    .app-frame {
        height: 680px;
    }

    .step-screenshots-double {
        grid-template-columns: 1fr;
    }

    .feature-screenshots-triple {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large desktop - Wider sidebar ads */
@media (min-width: 1280px) {
    .ad-sidebar {
        width: 300px;
        min-width: 300px;
    }

    .ad-sidebar-content {
        width: 300px;
        min-width: 300px;
    }

    .ad-banner {
        min-height: 100px;
    }

    .step-screenshots-double {
        grid-template-columns: 1fr 1fr;
    }

    .feature-screenshots-triple {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 16px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .site-tagline {
        font-size: 1rem;
    }

    .menu-btn {
        width: 38px;
        height: 38px;
    }

    .menu-dropdown {
        min-width: 210px;
    }

    .main-content {
        padding: 16px;
    }

    .app-wrapper {
        min-height: 600px;
        border-radius: 12px;
    }

    .app-frame {
        height: 600px;
    }

    .content-section {
        padding: 24px 20px;
    }

    .content-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .steps-list {
        gap: 24px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit {
        padding: 24px 20px;
    }

    .features-list {
        gap: 24px;
    }

    .feature-screenshots-triple {
        grid-template-columns: 1fr 1fr;
    }

    .ad-banner {
        min-height: 70px;
    }

    .footer-nav {
        gap: 14px;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .step-screenshots-double {
        grid-template-columns: 1fr;
    }

    .feature-screenshots-triple {
        grid-template-columns: 1fr;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .app-wrapper {
        min-height: 650px;
    }

    .app-frame {
        height: 650px;
    }
}

/* Blog Styles */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-card {
    display: block;
    background-color: var(--surface-color);
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.blog-card-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-secondary);
}

/* Blog Article */
.blog-article-header {
    margin-bottom: 32px;
}

.blog-back-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.blog-back-link:hover {
    color: var(--accent-secondary);
}

.blog-article .blog-article-header h2 {
    text-align: left;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.blog-meta-separator {
    color: var(--ad-border);
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    color: var(--text-color);
}

.blog-content p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 18px;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 18px;
    padding-left: 24px;
}

.blog-content li {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 8px;
}

.blog-content a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.blog-content a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .blog-card {
        padding: 24px 20px;
    }

    .blog-article .blog-article-header h2 {
        font-size: 1.3rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
        margin-top: 28px;
    }

    .blog-hero-faces svg,
    .blog-hero-seasons svg {
        width: 70px;
        height: 70px;
    }

    .blog-hero-face-label,
    .blog-hero-season-label {
        font-size: 0.7rem;
    }

    .blog-hero-calendar svg {
        max-width: 260px;
    }

    .blog-hero-journal svg {
        max-width: 180px;
    }

    .blog-hero-comparison svg {
        max-width: 320px;
    }
}

/* Blog Hero Illustrations */
.blog-hero-illustration {
    display: flex;
    justify-content: center;
    padding: 12px 0 20px;
}

.blog-hero-faces,
.blog-hero-seasons {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: flex-end;
}

.blog-hero-face,
.blog-hero-season {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.blog-hero-face svg,
.blog-hero-season svg {
    width: 90px;
    height: 90px;
}

.blog-hero-face-label,
.blog-hero-season-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.blog-hero-calendar svg {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.blog-hero-journal svg {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.blog-hero-comparison svg {
    max-width: 380px;
    width: 100%;
    height: auto;
}

/* Blog face animations - matching app moon face style */
.blog-face-character {
    transform-origin: 50px 50px;
    animation: blogFaceFloat 6s ease-in-out infinite;
}

.blog-face-character-d1 {
    animation-delay: -2s;
}

.blog-face-character-d2 {
    animation-delay: -4s;
}

.blog-face-breathe {
    transform-origin: 50px 50px;
    animation: blogFaceBreathe 5s ease-in-out infinite;
}

.blog-face-glow {
    transform-origin: 50px 50px;
    animation: blogGlowPulse 4s ease-in-out infinite;
}

.blog-face-eye-group {
    transform-box: fill-box;
    transform-origin: center;
}

.blog-face-blink {
    animation: blogFaceBlink 4s ease-in-out infinite;
}

.blog-face-blink-d1 {
    animation-delay: -1.5s;
}

.blog-face-cheek {
    animation: blogFaceBlush 3s ease-in-out infinite;
}

.blog-illus-float {
    animation: blogIllusFloat 5s ease-in-out infinite;
}

.blog-illus-pulse {
    animation: blogIllusPulse 2s ease-in-out infinite;
}

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

@keyframes blogFaceBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes blogGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes blogFaceBlink {
    0%, 38%, 42%, 100% { transform: scaleY(1); }
    40% { transform: scaleY(0.05); }
}

@keyframes blogFaceBlush {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.45; }
}

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

@keyframes blogIllusPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
