:root {
    --color-brand-orange: #F59E0B;
    --color-brand-coral: #FB7185;
    --color-brand-pink: #EC4899;
    --color-brand-purple: #A855F7;
    --color-brand-blue: #3B82F6;
    --color-brand-navy: #1E1B4B;

    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-bg-glass: rgba(255, 255, 255, 0.92);
    --color-border: #E2E8F0;

    --color-text: #0F172A;
    --color-text-soft: #475569;
    --color-text-muted: #94A3B8;
    --color-text-inverse: #FFFFFF;

    --color-success: #22C55E;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-info: #3B82F6;

    --brand-gradient: linear-gradient(135deg, #F59E0B 0%, #FB7185 25%, #EC4899 50%, #A855F7 75%, #3B82F6 100%);

    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 14px 28px rgba(15, 23, 42, 0.12);
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--color-bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

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

/* Logo styles */
.logo-image {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.logo-image-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: block;
    transition: transform 0.3s ease;
}

/* Logo hover effects */
.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-large:hover .logo-image-large {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-text);
}

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

.nav-link {
    color: var(--color-text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-brand-purple);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
}

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

.logo-large {
    margin-bottom: 2rem;
    cursor: pointer;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
    display: inline-block;
}

.hero-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--brand-gradient);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-soft);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--brand-gradient);
    color: var(--color-text-inverse);
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--color-text-inverse);
    text-decoration: none;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-brand-purple);
    border: 1px solid var(--color-brand-purple);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--color-brand-pink);
    border-color: var(--color-brand-pink);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.btn-outline {
    background: var(--color-surface);
    color: var(--color-brand-purple);
    border-color: var(--color-brand-purple);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--color-bg-alt);
    color: var(--color-brand-purple);
    text-decoration: none;
}

/* Featured Apps */
.featured-apps {
    padding: 4rem 0;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.featured-apps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

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

.app-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* App Icon Styles */
.app-card .app-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.app-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.app-icon-placeholder {
    width: 100%;
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 12px;
}

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

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

/* Page Header */
.page-header {
    padding: 2rem 0;
    text-align: center;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.page-description {
    color: var(--color-text-soft);
}

/* Content Section */
.content-section {
    padding: 2rem 0;
    background: var(--color-bg);
}

/* Blog Posts */
.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.blog-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.blog-card h2 {
    margin-bottom: 1rem;
}

.blog-card h2 a {
    color: var(--color-text);
    text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus {
    color: var(--color-brand-pink);
}

.read-more {
    color: var(--color-brand-purple);
    text-decoration: none;
    font-weight: 600;
}

/* Single Content */
.single-content {
    padding: 3rem 0;
}

.app-header {
    text-align: center;
    padding-bottom: 2rem;
}

.app-header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.content-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.content-header h1,
.app-header h1,
.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--color-text-muted);
}

.content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content h2,
.content h3 {
    color: var(--color-text);
    margin: 2rem 0 1rem;
}

.content p,
.content li {
    margin-bottom: 1.1rem;
    color: var(--color-text-soft);
}

.content strong {
    color: var(--color-text);
}

.blog-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Responsive image handling for blog content */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Ensure all images in content are responsive */
.content figure {
    margin: 2rem 0;
    text-align: center;
}

.content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.content figure figcaption {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* Override any inline styles that might cause issues */
.content img[style*="width"],
.content img[style*="height"] {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* App Actions */
.app-actions {
    text-align: center;
    padding-top: 2rem;
}

/* Footer */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand p,
.footer-links p {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

a {
    color: var(--color-brand-purple);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover,
a:focus {
    color: var(--color-brand-pink);
    text-decoration: underline;
}

/* Categories and Meta */
.category {
    background: var(--color-bg-alt);
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.category-announcement {
    background: #e0edff;
    border-color: #c4d8fb;
    color: #1e3a8a;
}

.category-app-release {
    background: #f3e8ff;
    border-color: #e9d5ff;
    color: #6b21a8;
}

.category-giftlist-update {
    background: #ffe4ef;
    border-color: #fdcde0;
    color: #9d174d;
}

.category-countdown-update {
    background: #ffedd5;
    border-color: #fed7aa;
    color: #9a3412;
}

.app-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price {
    color: var(--color-brand-purple);
    font-weight: 600;
}

/* Privacy layout helpers */
.site {
    background: var(--color-bg);
}

.header-bar {
    border: 0;
    border-top: 1px solid var(--color-border);
}

.content-left {
    text-align: left;
}

.privacy-container {
    max-width: 700px;
}

.privacy-content {
    max-width: 700px;
}

/* Logo only navigation (optional alternative layout) */
.logo-only {
    justify-content: center;
}

.logo-only .nav-menu {
    position: absolute;
    right: 2rem;
}

/* Mobile blog list image optimizations */
.blog-list-image {
    max-width: 200px;
    height: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

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

    .logo-image-large {
        width: 60px;
        height: 60px;
    }

    .logo-image {
        width: 24px;
        height: 24px;
    }

    /* Mobile image optimizations */
    .content img,
    .blog-image {
        margin: 1.5rem auto;
        border-radius: 6px;
    }

    .content {
        padding: 0 1rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .content h2,
    .content h3 {
        margin: 1.5rem 0 0.75rem;
    }

    .content p {
        margin-bottom: 1.25rem;
    }

    .blog-card img[style*="max-width"] {
        max-width: 200px !important;
        width: auto !important;
    }
}
