/*
Theme Name: Egypt Dreaming
Theme URI: https://egyptdreaming.com
Description: Custom child theme for Egypt Dreaming
Author: Egypt Dreaming
Author URI: https://egyptdreaming.com
Template: generatepress
Version: 1.0.2
Text Domain: egyptdreaming-child
*/

/* ========== CSS VARIABLES ========== */
:root {
    --ed-night: #161D3F;
    --ed-night-deep: #0D1230;
    --ed-night-soft: #232C5C;
    --ed-gold: #C9A227;
    --ed-gold-dark: #A07F15;
    --ed-gold-pale: #E9D8A6;
    --ed-papyrus: #FAF6EB;
    --ed-sand: #F2EAD3;
    --ed-ivory: #FFFDF6;
    --ed-text: #2B2B33;
    --ed-text-muted: #6B7280;
    --ed-border: #E5DCC3;
    --ed-serif: Georgia, 'Times New Roman', serif;
    --ed-radius-sm: 6px;
    --ed-radius-md: 12px;
    --ed-shadow-card: 0 2px 10px rgba(13, 18, 48, 0.08);
}

/* ========== GLOBAL ========== */
body {
    background-color: var(--ed-papyrus);
    color: var(--ed-text);
}

/* Post photos render exactly as uploaded */
body.single .entry-content img,
.wp-post-image {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

h1, h2, h3, h4 {
    font-family: var(--ed-serif);
    color: var(--ed-night);
}

.entry-content a {
    color: var(--ed-gold-dark);
}

.entry-title,
.entry-title a {
    font-family: var(--ed-serif);
    color: var(--ed-night);
}

/* ========== SITE HEADER ========== */
.site-header {
    background-color: var(--ed-night-deep);
    border-bottom: 2px solid var(--ed-gold);
}

.site-header .main-title a,
.site-header .main-title a:visited {
    font-family: var(--ed-serif);
    color: var(--ed-gold-pale);
}

.site-header .main-title a:hover {
    color: var(--ed-gold);
}

.site-header .site-description {
    color: rgba(245, 239, 217, 0.65);
}

.main-navigation,
.main-navigation .main-nav ul li a {
    background-color: var(--ed-night-deep);
    color: #F5EFD9;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--ed-gold);
    background-color: var(--ed-night-deep);
}

.main-navigation .menu-toggle,
.main-navigation .menu-toggle:hover,
.main-navigation .menu-toggle:focus {
    background-color: var(--ed-night-deep);
    color: #F5EFD9;
}

.main-navigation .mobile-menu-control-wrapper .menu-toggle {
    background-color: var(--ed-night-deep);
    color: #F5EFD9;
}

/* ========== IN-POST ELEMENTS ========== */
.egyptdreamh2 {
    font-family: var(--ed-serif);
    color: var(--ed-gold-pale);
    background-color: var(--ed-night);
    font-size: 28px;
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 20px;
    padding: 12px 18px;
    border-bottom: 2px solid var(--ed-gold);
    border-radius: var(--ed-radius-sm) var(--ed-radius-sm) 0 0;
}

.egyptdreamquestion {
    display: block;
    font-family: var(--ed-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ed-night);
    background-color: var(--ed-sand);
    border-left: 4px solid var(--ed-gold);
    border-radius: 0 var(--ed-radius-sm) var(--ed-radius-sm) 0;
    padding: 16px 20px;
    margin-top: 36px;
    margin-bottom: 18px;
}

img.egyptdreamimg {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 32px;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== HOMEPAGE OVERRIDES ========== */
body.ed-homepage .site-content {
    padding: 0;
}

body.ed-homepage #content {
    max-width: 100%;
}

body.ed-homepage #content .grid-container {
    max-width: 100%;
    padding: 0;
}

/* ========== HOMEPAGE WRAPPER ========== */
.ed-home-wrapper {
    width: 100%;
}

/* ========== SECTION COMMON ========== */
.ed-section-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.ed-section-title {
    font-family: var(--ed-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--ed-night);
    text-align: center;
    margin: 0 0 14px;
}

.ed-section-ornament {
    display: block;
    width: 220px;
    height: 34px;
    margin: 0 auto 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 48'%3E%3Ccircle cx='130' cy='22' r='10' fill='%23C9A227'/%3E%3Cpath d='M118 22 C100 6 64 2 18 12 C58 15 96 20 118 28 Z' fill='%23C9A227'/%3E%3Cpath d='M142 22 C160 6 196 2 242 12 C202 15 164 20 142 28 Z' fill='%23C9A227'/%3E%3Cpath d='M124 33 C114 39 102 41 88 41 C104 44 118 41 128 36 Z' fill='%23C9A227'/%3E%3Cpath d='M136 33 C146 39 158 41 172 41 C156 44 142 41 132 36 Z' fill='%23C9A227'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ========== HERO ========== */
.ed-hero {
    position: relative;
    margin-top: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0A0E26 0%, #11173A 45%, #1D2650 80%, #232C5C 100%);
    overflow: hidden;
}

.ed-hero-stars {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image:
        radial-gradient(1.6px 1.6px at 22% 28%, rgba(255, 255, 255, 0.85) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 68% 16%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 84% 42%, rgba(233, 216, 166, 0.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 42% 52%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
        radial-gradient(1.3px 1.3px at 8% 60%, rgba(255, 255, 255, 0.65) 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 34%, rgba(233, 216, 166, 0.6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 92% 24%, rgba(255, 255, 255, 0.75) 50%, transparent 51%),
        radial-gradient(1px 1px at 32% 12%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
        radial-gradient(circle at 76% 22%, rgba(233, 216, 166, 0.16) 0%, transparent 18%);
    background-repeat: repeat;
    background-size: 640px 480px;
}

.ed-hero-moon {
    position: absolute;
    top: 32px;
    right: 11%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #F5ECC8 0%, var(--ed-gold-pale) 55%, #D9BF77 100%);
    box-shadow: 0 0 64px 20px rgba(233, 216, 166, 0.22);
    z-index: 1;
}

.ed-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 34px 24px 140px;
    max-width: 720px;
}

.ed-hero-eye {
    display: block;
    width: 52px;
    height: 36px;
    margin: 0 auto 8px;
}

.ed-hero-eyebrow {
    color: var(--ed-gold);
    font-size: 14px;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.ed-hero-title {
    font-family: var(--ed-serif);
    font-size: 42px;
    font-weight: 700;
    color: #FBF7E8;
    margin: 0 0 10px;
    line-height: 1.15;
}

.ed-hero-subtitle {
    font-size: 17px;
    color: rgba(245, 239, 217, 0.82);
    margin: 0 0 22px;
    line-height: 1.5;
}

.ed-hero-search form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--ed-radius-md);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.55);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.ed-search-input {
    flex: 1;
    min-width: 0;
    padding: 13px 20px;
    border: none;
    font-size: 16px;
    color: var(--ed-text);
    background: var(--ed-ivory);
    outline: none;
}

.ed-search-input::placeholder {
    color: var(--ed-text-muted);
}

.ed-search-btn {
    padding: 13px 24px;
    background: var(--ed-gold);
    color: var(--ed-night-deep);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ed-search-btn:hover {
    background: var(--ed-gold-pale);
}

.ed-hero-count {
    font-size: 13px;
    color: rgba(245, 239, 217, 0.6);
    margin: 22px 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ed-hero-pyramids {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 130px;
    display: block;
    z-index: 1;
}

.ed-hero-palms {
    position: absolute;
    bottom: 2px;
    display: block;
    z-index: 1;
}

.ed-palms-left {
    left: 3%;
    width: 200px;
    height: 155px;
}

.ed-palms-right {
    right: 3%;
    width: 168px;
    height: 130px;
}

/* ========== CATEGORY SECTION ========== */
.ed-categories-section {
    padding: 76px 0;
    background: var(--ed-papyrus);
}

.ed-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ed-category-card {
    position: relative;
    display: block;
    border-radius: var(--ed-radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--ed-night);
    border: 1px solid var(--ed-border);
    box-shadow: var(--ed-shadow-card);
}

.ed-category-image {
    position: relative;
}

.ed-category-image img {
    display: block;
    width: 100%;
    height: auto;
}

.ed-category-placeholder {
    padding-bottom: 62%;
    background: linear-gradient(160deg, var(--ed-night-soft) 0%, var(--ed-night-deep) 100%);
}

.ed-category-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(13, 18, 48, 0.1) 30%, rgba(13, 18, 48, 0.85) 100%);
}

.ed-category-card:hover .ed-category-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 30%, rgba(13, 18, 48, 0.85) 100%);
}

.ed-category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 20px;
}

.ed-category-name {
    font-family: var(--ed-serif);
    font-size: 22px;
    color: #FBF7E8;
    margin: 0 0 4px;
}

.ed-category-count {
    font-size: 13px;
    color: var(--ed-gold-pale);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ========== DREAM CARDS (popular + latest) ========== */
.ed-popular-section {
    padding: 76px 0;
    background: var(--ed-sand);
}

.ed-latest-section {
    padding: 76px 0;
    background: var(--ed-papyrus);
}

.ed-dreams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ed-dream-card {
    background: var(--ed-ivory);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-md);
    overflow: hidden;
    box-shadow: var(--ed-shadow-card);
}

.ed-dream-card:hover {
    border-color: var(--ed-gold);
}

.ed-dream-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ed-dream-image {
    position: relative;
}

.ed-dream-image img {
    display: block;
    width: 100%;
    height: auto;
}

.ed-dream-placeholder {
    padding-bottom: 62%;
    background: linear-gradient(160deg, var(--ed-night-soft) 0%, var(--ed-night-deep) 100%);
}

.ed-dream-info {
    padding: 20px 22px 24px;
}

.ed-dream-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ed-gold-dark);
    margin: 0 0 8px;
}

/* small gold pyramid marker */
.ed-dream-category::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--ed-gold);
    margin-right: 8px;
    vertical-align: -1px;
}

.ed-dream-title {
    font-family: var(--ed-serif);
    font-size: 20px;
    line-height: 1.35;
    color: var(--ed-night);
    margin: 0;
}

.ed-dream-card:hover .ed-dream-title {
    color: var(--ed-gold-dark);
}

/* ========== ABOUT SECTION ========== */
.ed-about-section {
    padding: 76px 0 84px;
    background: var(--ed-night-deep);
}

.ed-about-inner {
    max-width: 760px;
    margin: 0 24px;
    padding: 48px 36px;
    text-align: center;
    border: 1px solid rgba(201, 162, 39, 0.6);
    border-radius: var(--ed-radius-sm);
    box-shadow: inset 0 0 0 5px var(--ed-night-deep), inset 0 0 0 6px rgba(201, 162, 39, 0.35);
}

@media (min-width: 832px) {
    .ed-about-inner {
        margin: 0 auto;
    }
}

.ed-about-section .ed-section-title {
    color: var(--ed-gold-pale);
}

.ed-about-text {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(245, 239, 217, 0.85);
    margin: 0 0 16px;
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: var(--ed-night-deep);
}

.site-info {
    background: transparent;
}

.ed-footer-wrap {
    background-color: var(--ed-night-deep);
    border-top: 2px solid var(--ed-gold);
    padding: 48px 24px 36px;
}

.ed-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    text-align: center;
}

.ed-footer-site-name {
    font-family: var(--ed-serif);
    font-size: 24px;
    color: var(--ed-gold-pale);
    margin: 0 0 18px;
}

.ed-footer-nav {
    margin: 0 0 24px;
}

.ed-footer-nav a {
    color: rgba(245, 239, 217, 0.8);
    text-decoration: none;
    margin: 0 14px;
    font-size: 15px;
}

.ed-footer-nav a:hover {
    color: var(--ed-gold);
}

.ed-footer-copyright {
    font-size: 13px;
    color: rgba(245, 239, 217, 0.5);
    margin: 0;
}

/* ========== TABLET ========== */
@media (max-width: 900px) {
    .ed-categories-grid,
    .ed-dreams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .ed-hero-title {
        font-size: 40px;
    }
}

/* ========== MOBILE ========== */
@media (max-width: 600px) {
    .ed-section-inner,
    .ed-about-inner {
        padding: 0 10px;
    }

    .ed-categories-grid,
    .ed-dreams-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ed-hero {
        margin-top: 24px;
        min-height: 340px;
    }

    .ed-hero-content {
        padding: 26px 10px 95px;
    }

    .ed-hero-title {
        font-size: 28px;
    }

    .ed-hero-subtitle {
        font-size: 16px;
    }

    .ed-hero-pyramids {
        height: 85px;
    }

    .ed-palms-left {
        left: 2%;
        width: 96px;
        height: 74px;
    }

    .ed-palms-right {
        right: 2%;
        width: 78px;
        height: 60px;
    }

    .ed-hero-moon {
        top: 20px;
        right: 7%;
        width: 40px;
        height: 40px;
    }

    .ed-section-ornament {
        width: 180px;
        height: 28px;
        margin-bottom: 32px;
    }

    .ed-about-inner {
        margin: 0 10px;
        padding: 36px 16px;
    }

    .ed-section-title {
        font-size: 27px;
    }

    .ed-categories-section,
    .ed-popular-section,
    .ed-latest-section,
    .ed-about-section {
        padding: 56px 0;
    }

    .egyptdreamh2 {
        font-size: 24px;
    }

    .egyptdreamquestion {
        font-size: 17px;
        padding: 14px 16px;
    }
}
