/* Iceland Light Calculator — shooticeland.com */

#iceland-light-calculator {
    --bg: #0C1D31;
    --accent: #0BA888;
    --dark-blue: #18304A;
    --text: #ffffff;
    --muted: #6090A8;

    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    border-radius: 16px;
    overflow: hidden;
}

#iceland-light-calculator *, #iceland-light-calculator *::before, #iceland-light-calculator *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#iceland-light-calculator .app {
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 24px 64px;
}

#iceland-light-calculator .header {
    text-align: center;
    margin-bottom: 36px;
}

#iceland-light-calculator .header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(11,168,136,0.1);
    border: 1px solid rgba(11,168,136,0.25);
    border-radius: 100px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

#iceland-light-calculator .header h1 {
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text);
}

#iceland-light-calculator .header p {
    color: var(--muted);
    font-size: 15px;
}

#iceland-light-calculator .controls {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}

@media (max-width: 500px) {
    #iceland-light-calculator .controls { flex-direction: column; }
}

#iceland-light-calculator .control-group { flex: 1; }

#iceland-light-calculator .control-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

#iceland-light-calculator .select-wrap { position: relative; }

#iceland-light-calculator .select-wrap::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--muted);
    pointer-events: none;
}

#iceland-light-calculator .control-select,
#iceland-light-calculator .control-date {
    width: 100%;
    padding: 11px 14px;
    background: var(--dark-blue);
    border: 1px solid #1E3D5C;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

#iceland-light-calculator .control-select:hover,
#iceland-light-calculator .control-date:hover { border-color: rgba(11,168,136,0.5); }

#iceland-light-calculator .control-select:focus,
#iceland-light-calculator .control-date:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(11,168,136,0.12);
}

#iceland-light-calculator .control-select option { background: #18304A; }

#iceland-light-calculator input[type="date"]::-webkit-calendar-picker-indicator {
    filter: brightness(0) saturate(100%) invert(62%) sepia(20%) saturate(500%) hue-rotate(165deg);
    cursor: pointer;
}

#iceland-light-calculator .coords-line {
    color: #3A5570;
    font-size: 12px;
    margin-bottom: 28px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#iceland-light-calculator .coords-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.55;
    flex-shrink: 0;
}

#iceland-light-calculator .section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #3A5570;
    margin-bottom: 10px;
    padding-top: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#iceland-light-calculator .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #18304A;
}

#iceland-light-calculator .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 560px) {
    #iceland-light-calculator .grid-2 { grid-template-columns: 1fr; }
}

#iceland-light-calculator .grid-1 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#iceland-light-calculator .card {
    border-radius: 14px;
    padding: 20px 22px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

#iceland-light-calculator .card-icon {
    font-size: 19px;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
}

#iceland-light-calculator .card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

#iceland-light-calculator .card-time-lg {
    font-size: clamp(26px, 6vw, 38px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

#iceland-light-calculator .card-time-rng {
    font-size: clamp(16px, 3.5vw, 20px);
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
}

#iceland-light-calculator .card-dur {
    font-size: 13px;
    color: var(--muted);
}

#iceland-light-calculator .card-na {
    font-size: 20px;
    color: #2A4060;
    margin-top: 2px;
}

#iceland-light-calculator .card-sun {
    background: linear-gradient(145deg, #162840 0%, var(--dark-blue) 100%);
    border-color: #243852;
}

#iceland-light-calculator .card-golden {
    background: linear-gradient(145deg, #0C3A30 0%, #0A2A22 100%);
    border-color: rgba(11,168,136,0.4);
}

#iceland-light-calculator .card-golden .card-label { color: #3DA888; }
#iceland-light-calculator .card-golden .card-time-rng { color: #0BA888; }
#iceland-light-calculator .card-golden .card-dur { color: #3A7A68; }

#iceland-light-calculator .card-blue {
    background: linear-gradient(145deg, #0D2237 0%, #0A1A2C 100%);
    border-color: rgba(90,155,210,0.3);
}

#iceland-light-calculator .card-blue .card-label { color: #4A80A8; }
#iceland-light-calculator .card-blue .card-time-rng { color: #6AADD4; }
#iceland-light-calculator .card-blue .card-dur { color: #3A6080; }

#iceland-light-calculator .card-daylight {
    background: var(--dark-blue);
    border-color: #243852;
}

#iceland-light-calculator .card-midnight {
    background: linear-gradient(145deg, #2A1C08 0%, #201508 100%);
    border-color: rgba(232,149,58,0.35);
}

#iceland-light-calculator .card-polar {
    background: linear-gradient(145deg, #0B1A28 0%, #091220 100%);
    border-color: rgba(90,140,190,0.25);
}

#iceland-light-calculator .card-aurora {
    background: linear-gradient(145deg, #051E16 0%, #041510 100%);
    border-color: rgba(11,168,136,0.3);
}

#iceland-light-calculator .badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#iceland-light-calculator .badge-amber {
    background: rgba(232,149,58,0.15);
    color: #E8953A;
    border: 1px solid rgba(232,149,58,0.3);
}

#iceland-light-calculator .badge-blue {
    background: rgba(90,155,210,0.15);
    color: #6AADD4;
    border: 1px solid rgba(90,155,210,0.25);
}

#iceland-light-calculator .badge-green {
    background: rgba(11,168,136,0.15);
    color: #0BA888;
    border: 1px solid rgba(11,168,136,0.3);
}

#iceland-light-calculator .alert-headline {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

#iceland-light-calculator .alert-body {
    font-size: 13px;
    line-height: 1.6;
}

#iceland-light-calculator .alert-tip {
    font-size: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    line-height: 1.6;
}

#iceland-light-calculator .daylight-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

#iceland-light-calculator .daylight-value {
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
}

#iceland-light-calculator .daylight-pct {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
}

#iceland-light-calculator .bar-track {
    height: 8px;
    background: #0C1D31;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

#iceland-light-calculator .bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .55s cubic-bezier(.4,0,.2,1);
}

#iceland-light-calculator .bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #3A5570;
}

#iceland-light-calculator .footer {
    text-align: center;
    margin-top: 52px;
    padding-top: 20px;
    border-top: 1px solid #18304A;
    color: #3A5570;
    font-size: 12px;
    line-height: 2;
}

#iceland-light-calculator .footer a {
    color: var(--accent);
    text-decoration: none;
}

#iceland-light-calculator .footer a:hover { text-decoration: underline; }
