/*
Theme Name: Gamaedor
Theme URI: https://gamaedor.com
Author: Gamaedor LLC
Author URI: https://gamaedor.com
Description: Business theme for Gamaedor - WordPress plugins, themes, Symfony web apps, and AI implementation services.
Version: 1.5.40
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamaedor
Tags: business, portfolio, custom-logo, custom-menu, featured-images, dark-mode
*/

/* === CSS Variables === */
:root {
    --color-primary: #d4a531;
    --color-primary-dark: #b8922a;
    --color-primary-light: #e8c45a;
    --color-secondary: #10b981;
    
    --color-bg-dark: #0a0a0a;
    --color-bg-card: #111111;
    --color-bg-card-hover: #1a1a1a;
    --color-bg-lighter: #161616;
    
    --color-text: #e5e5e5;
    --color-text-muted: #888888;
    --color-text-dark: #666666;
    
    --color-border: #222222;
    --color-border-light: #333333;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px rgba(212, 165, 49, 0.15);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg-dark);
}

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

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: var(--spacing-sm);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.main-nav a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-text);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-bg-dark);
    box-shadow: 0 2px 10px rgba(212, 165, 49, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 15px rgba(212, 165, 49, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

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

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
}

/* === Hero === */
.hero {
    padding: 160px 0 var(--spacing-2xl);
    background: var(--color-bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 165, 49, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 165, 49, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 165, 49, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.15;
}

.hero h1 .highlight {
    color: var(--color-primary);
    font-style: italic;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* === Services Grid === */
.services {
    background: var(--color-bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--spacing-md);
}

.service-icon img,
.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Products === */
.products {
    background: var(--color-bg-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 180px;
    background: var(--color-bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    font-size: 3rem;
    opacity: 0.5;
}

.product-content {
    padding: var(--spacing-md);
}

.product-meta {
    margin-bottom: var(--spacing-xs);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.product-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    background: rgba(212, 165, 49, 0.15);
    color: var(--color-primary);
}

.product-type-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-lighter);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.product-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.product-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.product-links {
    display: flex;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

/* === Roadmap === */
.roadmap {
    background: var(--color-bg-lighter);
}

.roadmap-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.roadmap-item {
    position: relative;
    padding-left: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-left: 2px solid var(--color-border);
}

.roadmap-item:last-child {
    padding-bottom: 0;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--color-bg-lighter);
    border: 2px solid var(--color-border);
    border-radius: 50%;
}

.roadmap-item.completed::before {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.roadmap-item.in-progress::before {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(212, 165, 49, 0.2);
}

.roadmap-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-secondary);
}

.status-in-progress {
    background: rgba(212, 165, 49, 0.15);
    color: var(--color-primary);
}

.status-planned {
    background: var(--color-bg-card);
    color: var(--color-text-muted);
}

.roadmap-item h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.roadmap-item p {
    color: var(--color-text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* === Contact === */
.contact {
    background: var(--color-bg-dark);
}

/* === Footer === */
.site-footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

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

/* === Entry Content (Single Pages) === */
.entry-content {
    color: var(--color-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.entry-content p {
    color: var(--color-text-muted);
}

.entry-content a {
    color: var(--color-primary);
}

.entry-content code {
    background: var(--color-bg-card);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.entry-content pre {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    overflow-x: auto;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .main-nav ul {
        gap: var(--spacing-sm);
    }
    
    .hero {
        padding: 120px 0 var(--spacing-xl);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

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