:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.75);
    --glass-shadow: 0 10px 30px rgba(210, 140, 60, 0.18);
    --text-primary: #2c1a0f;
    --text-secondary: #4a3221;
    --text-muted: #6b4c35;
    --accent-core: #d35400;
    --accent-relationships: #c0392b;
    --accent-thinking: #8e44ad;
    --accent-world: #27ae60;
    --accent-self: #2980b9;
    --accent-practical: #e67e22;
    --accent-fairness: #a93226;
    --accent-creativity: #16a085;
    --accent-change: #7d3c98;
    --accent-bigpicture: #2e86c1;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ff8a65 0%, #ffb74d 25%, #ffd54f 50%, #ffe082 75%, #fff8e1 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255,215,0,0.25) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.daily-idea {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 36px 28px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.daily-idea::after {
    content: '☀️';
    position: absolute; top: -15px; right: -10px;
    font-size: 130px; opacity: 0.08; transform: rotate(12deg);
}

.daily-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    font-weight: 700;
}

.daily-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d35400, #f39c12);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.daily-text {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.daily-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.controls {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: var(--glass-shadow);
}

.search-box {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 14px;
    color: var(--text-primary);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.search-box::placeholder { color: var(--text-muted); }
.search-box:focus { outline: none; border-color: #f39c12; background: rgba(255,255,255,0.8); box-shadow: 0 0 0 4px rgba(243,156,18,0.15); }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.4);
    color: var(--text-secondary);
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(255,255,255,0.85);
    color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211,84,0,0.15);
}

.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.idea-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--glass-shadow);
}

.idea-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 40px rgba(210, 140, 60, 0.25); border-color: rgba(255,255,255,0.9); }

.card-icon {
    position: absolute; bottom: 14px; right: 14px;
    font-size: 64px; opacity: 0.1; transform: rotate(-8deg);
    pointer-events: none;
}

.idea-number {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.7);
    color: var(--text-primary);
    width: 36px; height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.8);
}

.idea-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.idea-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
    flex-grow: 1;
}

.idea-category {
    display: inline-block;
    background: rgba(255,255,255,0.5);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 16px;
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,0.6);
}

/* FULL-PAGE EDITORIAL MODAL */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(60, 35, 15, 0.45);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
    padding: 0;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff8e1 0%, #ffffff 12%, #ffffff 88%, #fff3e0 100%);
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.modal-overlay.active .modal-content { transform: translateY(0); opacity: 1; }

.close-btn {
    position: fixed; top: 24px; right: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.08);
    color: #2c1a0f;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.close-btn:hover { background: #ffffff; transform: scale(1.08); }

.article-wrapper {
    max-width: 740px;
    margin: 0 auto;
    padding: 110px 32px 140px;
}

.modal-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #d35400;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f39c12;
}

.editorial-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #1f120a;
    margin-bottom: 24px;
}

.editorial-deck {
    font-family: system-ui, sans-serif;
    font-size: 1.35rem;
    line-height: 1.5;
    color: #5a4030;
    margin-bottom: 48px;
    font-weight: 400;
    border-left: 3px solid #f39c12;
    padding-left: 20px;
    max-width: 90%;
}

.editorial-section {
    margin-bottom: 48px;
}
.editorial-section:last-child { margin-bottom: 0; }

.editorial-section h3 {
    font-family: system-ui, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #8b6f55;
    margin-bottom: 16px;
    font-weight: 700;
}

.editorial-section p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #3a281c;
    margin-bottom: 16px;
}

.practice-highlight {
    background: rgba(255, 248, 225, 0.9);
    border: 1px solid #e6d5b8;
    padding: 28px;
    border-radius: 12px;
    margin-top: 12px;
    position: relative;
}
.practice-highlight::before {
    content: '✦';
    position: absolute; top: 12px; right: 16px;
    font-size: 1.4rem; color: #f39c12; opacity: 0.6;
}
.practice-highlight p {
    font-family: system-ui, sans-serif;
    font-weight: 500;
    color: #4a3221;
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

.editorial-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    margin: 48px 0;
}

@media (max-width: 768px) {
    .container { padding: 30px 16px 60px; }
    .daily-idea { padding: 28px 20px; }
    .ideas-grid { grid-template-columns: 1fr; }
    .article-wrapper { padding: 95px 24px 80px; }
    .editorial-title { font-size: 2.4rem; }
    .editorial-deck { font-size: 1.1rem; padding-left: 16px; }
    .editorial-section p { font-size: 1.1rem; }
}
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}
.lang-switcher a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.lang-switcher a:hover {
    color: var(--primary-color);
}
