:root {
    --primary-dark: #0B1426;
    --secondary-dark: #1B2B44;
    --accent-blue: #2B7CE9;
    --accent-cyan: #4ECDC4;
    --accent-coral: #FF6B6B;
    --accent-orange: #FFB347;
    --text-light: #FFFFFF;
    --text-muted: #B8C5D1;
    --border-color: #2A3F5F;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(11, 20, 38, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    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(--text-light);
}

/* SVG 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;
}

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

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

/* If you want to change SVG colors dynamically (optional) */
.logo-image {
    filter: brightness(1) contrast(1);
}

.logo-image:hover {
    filter: brightness(1.1) contrast(1.1);
}

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

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

/* 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;
    background: linear-gradient(45deg, var(--text-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    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.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

/* Featured Apps */
.featured-apps {
    padding: 4rem 0;
}

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

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

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

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 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: linear-gradient(45deg, var(--accent-coral), var(--accent-orange));
    border-radius: 12px;
}

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

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

/* Page Header */
.page-header {
    padding: 2rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Content Section */
.content-section {
    padding: 0;
}

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

.blog-card {
    background: rgba(27, 43, 68, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

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

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

.blog-card h2 a:hover {
    color: var(--accent-cyan);
}

.read-more {
    color: var(--accent-cyan);
    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(--border-color);
}

.content-header h1, .app-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

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

.content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.blog-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* 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: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content figure figcaption {
    margin-top: 1rem;
    color: var(--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(--primary-dark);
    border-top: 1px solid var(--border-color);
    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 {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

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

/* 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;
    }
}

/* Categories and Meta */
.category {
    background: var(--accent-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.price {
    color: var(--accent-cyan);
    font-weight: 600;
}

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

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

/* Dark mode SVG filter (if needed for specific styling) */
@media (prefers-color-scheme: dark) {
    .logo-image,
    .logo-image-large {
        filter: brightness(1.1);
    }
}

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

/* Override inline styles on mobile for blog list images */
@media (max-width: 768px) {
    .blog-card img[style*="max-width"] {
        max-width: 200px !important;
        width: auto !important;
    }
}
