/* =============================================
   PHZUU.com - Love Letter Generator Theme
   Pink #E91E63 | Red | Cream | Gold
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --pink-light: #FCE4EC;
    --pink: #E91E63;
    --pink-dark: #C2185B;
    --red: #C62828;
    --red-dark: #B71C1C;
    --white: #FFFFFF;
    --cream: #FFF8E1;
    --bg: #FFF5F7;
    --text: #4A4A4A;
    --text-light: #777777;
    --gold: #FFD700;
    --shadow: 0 4px 20px rgba(233, 30, 99, 0.15);
    --shadow-lg: 0 8px 30px rgba(233, 30, 99, 0.2);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Playfair Display', Georgia, serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--pink-dark); }
a { color: var(--pink); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--red); }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
img { max-width: 100%; }

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
    background: linear-gradient(135deg, var(--white) 0%, var(--pink-light) 100%);
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pink);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--pink); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =============================================
   MAIN CONTAINER
   ============================================= */

main { flex: 1; }

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

main.container { padding: 3rem 2rem; }

/* =============================================
   HERO
   ============================================= */

.hero {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--cream) 50%, var(--pink-light) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,99,0.3);
    color: var(--white);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-family: 'Lato', sans-serif;
    display: block;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,99,0.3);
    color: var(--white);
}

/* =============================================
   SECTIONS
   ============================================= */

.section {
    margin: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--red));
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* =============================================
   CARDS GRID
   ============================================= */

.cards-grid, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--pink-light);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    flex: 1;
}

.card .flag {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card .btn {
    display: inline-block;
    margin-top: 1rem;
    align-self: center;
}

/* Article card */
.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.article-card:hover { transform: translateY(-5px); }
.article-card img { width: 100%; height: 200px; object-fit: cover; }
.article-card .content { padding: 1.5rem; }
.article-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.article-card p { color: var(--text-light); font-family: 'Lato', sans-serif; font-size: 0.9rem; }

/* =============================================
   TOOL PAGE / FORM
   ============================================= */

.tool-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 2rem auto;
    border: 2px solid var(--pink-light);
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    color: var(--pink-dark);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tool-form { margin-bottom: 2rem; }

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--pink-dark);
    font-family: 'Lato', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--pink-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    background: var(--white);
    transition: border-color 0.3s;
}

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

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

/* =============================================
   LETTER OUTPUT
   ============================================= */

.letter-output {
    background: linear-gradient(135deg, var(--cream), #FFFDF0);
    border: 3px double var(--pink);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    min-height: 300px;
    white-space: pre-wrap;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 2;
    position: relative;
}

/* =============================================
   CONTENT PAGES (about, contact, privacy, etc.)
   ============================================= */

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

.content h1 {
    color: var(--pink-dark);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content h2 {
    color: var(--pink-dark);
    margin: 2rem 0 0.75rem;
    font-size: 1.4rem;
}

.content h3 {
    color: var(--gray-700, var(--text));
    margin: 1.5rem 0 0.5rem;
}

.content p {
    line-height: 1.8;
    margin: 0.75rem 0;
    color: var(--text);
    font-family: 'Lato', sans-serif;
}

.content ul, .content ol { margin: 1rem 0 1.5rem; }
.content li {
    margin: 0.5rem 0;
    color: var(--text);
    font-family: 'Lato', sans-serif;
}

.content form { margin-top: 1.5rem; }
.content input, .content textarea, .content select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--pink-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    margin: 0.5rem 0;
    background: var(--white);
}
.content input:focus, .content textarea:focus {
    outline: none;
    border-color: var(--pink);
}
.content button {
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    margin-top: 0.5rem;
}
.content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233,30,99,0.3);
}

/* =============================================
   ARTICLE FULL PAGE
   ============================================= */

.article-content {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 2rem auto;
}

.article-content img {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
    font-family: 'Lato', sans-serif;
    line-height: 1.8;
}

/* =============================================
   BREADCRUMB
   ============================================= */

.breadcrumb {
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a { color: var(--pink); }

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: linear-gradient(135deg, var(--pink-dark), var(--red-dark));
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
    font-family: 'Lato', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li { margin-bottom: 0.5rem; }

.footer-section a { color: rgba(255,255,255,0.8); }
.footer-section a:hover { color: var(--gold); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* =============================================
   404 / NOT FOUND
   ============================================= */

.not-found {
    text-align: center;
    padding: 5rem 1.5rem;
}

.not-found h1 {
    font-size: 5rem;
    color: var(--pink);
    margin-bottom: 1rem;
}

.not-found h2 {
    color: var(--text);
    margin-bottom: 1.5rem;
}

.not-found .btn { display: inline-block; margin-top: 1.5rem; }

/* =============================================
   ADSENSE
   ============================================= */

.ad-container { text-align: center; margin: 2rem 0; min-height: 90px; }

/* =============================================
   UTILITIES
   ============================================= */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 2.5rem 1.5rem; }
    .cards-grid, .grid { grid-template-columns: 1fr; }
    .tool-container { padding: 1.5rem; margin: 1rem; }
    main.container { padding: 2rem 1rem; }
    .container { padding: 0 1rem; }
    .section { margin: 2rem 0; }
    .article-content { padding: 1.5rem; }
    .not-found h1 { font-size: 3.5rem; }
    .footer-content { grid-template-columns: 1fr; }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    .navbar, footer, .btn, .ad-container, .tool-form { display: none !important; }
    .letter-output { border: 1px solid #ccc; padding: 0; }
    body { background: white; }
}
