/* =============================================
   SCHEGGE DI ME - Dark Moody Theme
   ============================================= */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Lato:wght@300;400;700&display=swap');

/* =============================================
   CSS Variables & Reset
   ============================================= */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #707070;
    --accent-gold: #c9a962;
    --accent-gold-light: #d4b978;
    --accent-gold-dark: #a68b4a;
    --border-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 400;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* =============================================
   Layout Containers
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =============================================
   Header & Navigation
   ============================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    padding: 1.5rem 0;
    transition: background var(--transition-medium);
}

header.scrolled {
    background: var(--bg-primary);
    box-shadow: 0 2px 20px var(--shadow-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo:hover {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--transition-medium);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 50%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero .tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.hero .divider {
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    margin: 2rem auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* =============================================
   Poems Grid Section
   ============================================= */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-gold);
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* =============================================
   Poem Cards
   ============================================= */
.poem-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.poem-card:hover::before {
    transform: translateX(0);
}

.poem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-gold-dark);
}

.poem-card .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.poem-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.poem-card:hover h3 {
    color: var(--accent-gold);
}

.poem-card .excerpt {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.poem-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.poem-card .read-more::after {
    content: '\2192';
    transition: transform var(--transition-fast);
}

.poem-card:hover .read-more::after {
    transform: translateX(5px);
}

/* =============================================
   Single Poem Page
   ============================================= */
.poem-page {
    padding-top: 120px;
    padding-bottom: 6rem;
    min-height: 100vh;
}

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

.poem-header .date {
    font-size: 0.85rem;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.poem-header h1 {
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.poem-header .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-secondary);
}

.poem-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-primary);
}

.poem-content p {
    margin-bottom: 2rem;
}

.poem-content .stanza {
    margin-bottom: 2.5rem;
}

.poem-content .verse {
    margin-bottom: 0.5rem;
}

.poem-content em {
    color: var(--accent-gold-light);
}

.poem-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.poem-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

/* =============================================
   Newsletter Section
   ============================================= */
.newsletter {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    max-width: 350px;
    padding: 1rem 1.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    color: var(--bg-primary);
}

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

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

/* =============================================
   About Page
   ============================================= */
.about-page {
    padding-top: 120px;
    padding-bottom: 6rem;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h1 {
    margin-bottom: 1rem;
}

.about-header .divider {
    width: 60px;
    height: 1px;
    background: var(--accent-gold);
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    aspect-ratio: 3/4;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-text blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    padding-left: 2rem;
    border-left: 2px solid var(--accent-gold);
    margin: 2rem 0;
}

/* =============================================
   Contact Page
   ============================================= */
.contact-page {
    padding-top: 120px;
    padding-bottom: 6rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h1 {
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Mobile */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    /* Sections */
    .section {
        padding: 4rem 0;
    }

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

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        max-width: 100%;
        width: 100%;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Poem Page */
    .poem-header h1 {
        font-size: 2rem;
    }

    .poem-content {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .poem-card {
        padding: 2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        width: 100%;
        text-align: center;
    }
}

/* =============================================
   ENHANCED MOBILE STYLES
   ============================================= */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Better touch targets */
@media (max-width: 768px) {
    a, button, input, textarea, select {
        min-height: 44px;
    }

    .nav-links a {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .nav-links {
        padding: 2rem;
        gap: 0.5rem;
    }

    /* Overlay when menu open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }

    /* Better form inputs */
    .form-group input,
    .form-group textarea,
    .newsletter-form input {
        font-size: 16px !important; /* Prevents iOS zoom */
        padding: 1rem;
        border-radius: 8px;
    }

    /* Stack poem navigation */
    .poem-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .poem-nav a {
        justify-content: center;
        padding: 0.75rem 1rem;
        background: var(--bg-secondary, #1a1a1a);
        border-radius: 8px;
    }

    /* Better card padding */
    .poem-card {
        padding: 1.5rem;
    }

    .poem-card h3 {
        font-size: 1.3rem;
    }

    /* Improve readability */
    .poem-content {
        font-size: 1.05rem;
        line-height: 1.9;
    }

    .poem-content p {
        margin-bottom: 1.5rem;
    }

    /* Footer mobile */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links a {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        letter-spacing: 0.05em;
    }

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

    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .poem-header h1 {
        font-size: 1.6rem;
    }

    .about-header h1,
    .contact-header h1 {
        font-size: 1.8rem;
    }

    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    footer {
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }

    .nav-links {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* =============================================
   Image Styles
   ============================================= */
.poem-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
}

.poem-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.about-logo-image {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    display: block;
}
