/*
Theme Name: Gottfried
Theme URI: https://gottfriedhq.com
Author: Gottfried Owusu Ansah
Description: A modern, glassmorphic portfolio theme with elegant typography.
Version: 1.4
License: MIT
*/

:root {
    --bg-color: #f7f9fc;
    --text-main: #1a202c;
    --text-muted: #718096;
    --brand-primary: #319795;
    --brand-secondary: #805ad5;
    --surface-color: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(255, 255, 255, 0.6);
    --glass-blur: 16px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    /* Elegant, Slim Font */
    --font-heading: 'Jost', sans-serif;
    --font-body: 'Jost', sans-serif;
    
    --container-width: 900px;
    --radius-soft: 16px;
}

[data-theme="dark"] {
    --bg-color: #0f1115;
    --text-main: #e2e8f0;
    --text-muted: #a0aec0;
    --surface-color: rgba(30, 32, 38, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 300; /* Slimmer text by default */
    line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Force Font Inheritance Everywhere */
button, input, textarea, select, .wp-block-html {
    font-family: inherit;
}

/* Subtle Gradient Background Blob */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(49, 151, 149, 0.15) 0%, rgba(128, 90, 213, 0.05) 60%, transparent 80%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

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

img { max-width: 100%; height: auto; border-radius: var(--radius-soft); }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 0.75em; }
h1.is-title { font-weight: 300; font-size: 3.5rem; line-height: 1.1; }

.site-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Navbar */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0 3rem; }
.site-branding { font-weight: 500; font-size: 1.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.site-nav ul { display: flex; list-style: none; gap: 2rem; }
.site-nav a { font-weight: 400; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem;}

/* Buttons */
.wp-block-button__link {
    background-color: var(--text-main);
    color: var(--bg-color);
    border-radius: 50px; /* Pill shape */
    padding: 0.6rem 1.5rem;
    font-weight: 400;
    transition: opacity 0.2s;
}
.wp-block-button__link:hover { opacity: 0.8; }

/* PROJECT CARD & GLASS STYLES */
.wp-block-group.is-style-glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-soft);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
}
.wp-block-group.is-style-glass-card:hover { transform: translateY(-3px); }

/* Card Image Fill */
.wp-block-group.is-style-glass-card .wp-block-image {
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}
.wp-block-group.is-style-glass-card .wp-block-image img {
    border-radius: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* --- NEW SECTIONS --- */

/* 1. Tech Stack Marquee */
.tech-stack-container {
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 1rem 0;
}
.tech-stack-track {
    display: inline-flex;
    gap: 3rem;
    animation: marquee 20s linear infinite;
}
.tech-stack-item {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: default;
}
.tech-stack-item:hover {
    color: var(--brand-primary);
    opacity: 1;
    transform: scale(1.05);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 2. Services Bento Grid (Clean) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Wider default for text */
    gap: 1.5rem;
}
.service-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-soft);
    transition: transform 0.2s, var(--shadow-soft);
}
.service-card:hover { 
    transform: translateY(-3px); 
    border-color: var(--brand-primary); 
    box-shadow: var(--shadow-soft);
}

/* 4. Screenshot Mockups */
.mockup-mobile img {
    border-radius: 20px;
    border: 6px solid #2d3748; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
/* Desktop mockup now handled by glass card style but we keep this for legacy */
.mockup-browser { border-radius: 12px; overflow: hidden; }

/* 5. Changelog Modal */
.changelog-modal {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.changelog-modal.is-open { display: flex; opacity: 1; }
.changelog-content {
    background: var(--bg-color);
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: var(--radius-soft);
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--surface-border);
}
.changelog-modal.is-open .changelog-content { transform: translateY(0); }
.close-modal {
    float: right;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
}
.changelog-entry {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: 1.5rem;
}
.changelog-entry:last-child { border: none; margin: 0; padding: 0; }
.changelog-date {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--brand-secondary);
    margin-bottom: 0.25rem;
    display: block;
}

/* Work List Table Hover */
.work-row { transition: background 0.2s; padding-left:0.5rem; padding-right:0.5rem; border-radius: 4px; color: var(--text-main); }
.work-row:hover { background: rgba(0,0,0,0.03); }

/* Utilities */
.theme-toggle { background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text-main); }
.editor-styles-wrapper { background-color: var(--bg-color) !important; }
