/* ==========================================================
 
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Fraunces:ital,wght@0,300;0,600;1,300&display=swap');

/* ---- Wrapper ---- */
.ci {
    background: #f7f6f2;
    padding: 64px 32px 80px;
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
}

/* ---- Header ---- */
.ci-header { text-align: center; margin-bottom: 56px; }

.ci-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: #244da8; margin-bottom: 12px;
}
.ci-eyebrow::before, .ci-eyebrow::after {
    content: ''; width: 28px; height: 1px; background: #244da8; opacity: .4;
}

.ci-title {
    font-family: 'Fraunces', serif; font-size: 36px;
    font-weight: 300; color: #111; line-height: 1.15; margin-bottom: 10px;
}
.ci-title em { font-style: italic; color: #244da8; }

.ci-sub {
    font-size: 15px; font-weight: 300; color: #777;
    max-width: 500px; margin: 0 auto; line-height: 1.7;
}

/* ---- Bento grid ---- */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.s3  { grid-column: span 3; }
.s4  { grid-column: span 4; }
.s5  { grid-column: span 5; }
.s6  { grid-column: span 6; }
.s7  { grid-column: span 7; }
.s12 { grid-column: span 12; }

/* ---- Card base ---- */
.bc {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,.06);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1),
                box-shadow .35s ease,
                border-color .3s;
}
.bc:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
    border-color: rgba(36,77,168,.15);
}
.bc::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--ac, #244da8);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.bc:hover::after { transform: scaleX(1); }

/* ---- Tags ---- */
.btag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 3px 10px;
    border-radius: 20px; margin-bottom: 14px;
}
.btag svg { width: 12px; height: 12px; }
.btag.blue   { color: #244da8; background: #eef3ff; }
.btag.green  { color: #0f7a55; background: #e8f7f1; }
.btag.amber  { color: #d97706; background: #fffbeb; }
.btag.purple { color: #7c3aed; background: #f5f0ff; }
.btag.rose   { color: #be185d; background: #fdf2f8; }

.bc h3 {
    font-family: 'Fraunces', serif; font-size: 18px;
    font-weight: 600; color: #111; margin-bottom: 8px; line-height: 1.2;
}
.bc p {
    font-size: 13px; font-weight: 300; color: #888;
    line-height: 1.6; margin-bottom: 14px;
}
.bnum {
    position: absolute; top: 16px; right: 20px;
    font-family: 'Fraunces', serif; font-size: 40px;
    font-weight: 300; color: rgba(0,0,0,.04); line-height: 1; user-select: none;
}

/* ===== CHARDOC ===== */
.bc.featured {
    background: linear-gradient(135deg, #1a3a8a 0%, #244da8 60%, #2d5fc4 100%);
    border-color: transparent;
}
.bc.featured:hover { box-shadow: 0 22px 60px rgba(36,77,168,.4); border-color: transparent; }
.bc.featured::after { background: rgba(255,255,255,.4); }
.bc.featured .bnum { color: rgba(255,255,255,.06); }

.char-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.char-logo-icon {
    width: 42px; height: 42px; border-radius: 11px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.char-logo-icon svg { width: 24px; height: 24px; }
.char-name {
    font-family: 'Fraunces', serif; font-size: 22px;
    font-weight: 600; color: #fff; letter-spacing: -.3px;
}
.char-name span {
    font-size: 11px; font-weight: 300; color: rgba(255,255,255,.5);
    display: block; letter-spacing: 1px; text-transform: uppercase;
}
.char-desc { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 14px; line-height: 1.6; }

.char-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cbadge {
    font-size: 10px; font-weight: 600; padding: 3px 10px;
    border-radius: 20px; letter-spacing: .5px;
    background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
}

.char-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ch-p {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; padding: 9px 18px;
    border-radius: 30px; text-decoration: none;
    background: #fff; color: #244da8;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.btn-ch-p:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-ch-s {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500; padding: 9px 18px;
    border-radius: 30px; text-decoration: none;
    background: rgba(255,255,255,.12); color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    transition: background .3s;
}
.btn-ch-s:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-ch-p svg, .btn-ch-s svg { width: 13px; height: 13px; }

/* ===== VREME ===== */
.bc.weather { background: linear-gradient(145deg, #f0f9ff, #fff); }
.bc.weather::after { background: #0369a1; }
.weather-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.weather-temp {
    font-family: 'Fraunces', serif; font-size: 44px;
    font-weight: 300; color: #0369a1; line-height: 1;
}
.weather-temp span { font-size: 18px; color: #7ab8d9; }
.weather-city { font-size: 12px; font-weight: 400; color: #888; margin-top: 4px; }
.weather-icon {
    overflow: visible
}
@keyframes wSpin { to { transform: rotate(360deg); } }
.weather-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.wst { background: rgba(3,105,161,.06); border-radius: 10px; padding: 8px 10px; }
.wst-lbl { font-size: 10px; font-weight: 500; color: #7ab8d9; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 2px; }
.wst-val { font-size: 13px; font-weight: 500; color: #0369a1; }
.weather-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500; color: #0369a1;
    text-decoration: none; margin-top: 12px; transition: gap .2s;
}
.weather-link:hover { gap: 9px; }
.weather-link svg { width: 13px; height: 13px; }

/* ===== NOUTĂȚI ===== */
.news-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.05);
}
.news-item:last-child { border-bottom: none; }
.news-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #0f7a55; flex-shrink: 0; margin-top: 5px;
}
.news-text { font-size: 13px; font-weight: 400; color: #444; line-height: 1.4; }
.news-date { font-size: 10px; color: #aaa; margin-top: 2px; }

/* ===== PROMOȚII ===== */
.promo-pct {
    position: absolute; top: 20px; right: 20px;
    font-family: 'Fraunces', serif; font-size: 36px;
    font-weight: 700; color: rgba(217,119,6,.12);
}
.promo-item {
    background: #fffbeb; border: 1px solid rgba(217,119,6,.15);
    border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
}
.promo-item h4 { font-size: 13px; font-weight: 500; color: #92400e; margin-bottom: 2px; }
.promo-item p  { font-size: 11px; color: #b45309; margin: 0; }

/* ===== PLATFORME ===== */
.platform-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 8px; }
.plat {
    background: #eef3ff; border-radius: 10px; padding: 10px 8px;
    text-align: center; text-decoration: none;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    display: block;
}
.plat:hover { transform: translateY(-3px); }
.plat svg   { width: 22px; height: 22px; margin-bottom: 5px; }
.plat-name  { font-size: 10px; font-weight: 500; color: #244da8; }
.plat--soon { opacity: .45; cursor: default; }
.plat--soon:hover { transform: none; }

/* ===== MAGAZIN ===== */
.shop-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.shop-item  { background: #f5f0ff; border-radius: 10px; padding: 10px; text-align: center; }
.shop-item-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(124,58,237,.15);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 6px;
}
.shop-item-icon svg { width: 18px; height: 18px; }
.shop-item-name     { font-size: 11px; font-weight: 500; color: #4c1d95; line-height: 1.2; }
.shop-coming        { font-size: 11px; color: #a78bfa; font-style: italic; text-align: center; }

/* ===== ISTORIC ===== */
.timeline { display: flex; flex-direction: column; }
.tl-item  { display: flex; gap: 12px; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-left  { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.tl-dot   { width: 10px; height: 10px; border-radius: 50%; background: #be185d; flex-shrink: 0; }
.tl-line  { width: 1px; flex: 1; background: rgba(190,24,93,.15); margin-top: 3px; }
.tl-item:last-child .tl-line { display: none; }
.tl-year  { font-size: 10px; font-weight: 600; color: #be185d; letter-spacing: .5px; margin-bottom: 2px; }
.tl-text  { font-size: 12px; font-weight: 400; color: #555; line-height: 1.4; }



.weather-error-panel {
    max-width: 700px;
    margin: 80px auto;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(135deg,#071224,#10284d);
    color: white;
}

.weather-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    border-radius: 12px;
    background: #0078d4;
    color: white;
    text-decoration: none;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .s4, .s5, .s7 { grid-column: span 6; }
    .s3, .s6 { grid-column: span 6; }
}
@media (max-width: 600px) {
    .ci { padding: 40px 16px 60px; }
    .ci-title { font-size: 26px; }
    .s3, .s4, .s5, .s6, .s7, .s12 { grid-column: span 12; }
    .platform-grid { grid-template-columns: repeat(3, 1fr); }
}
