/* 
 * Cuaca Ku Minimalist Stylesheet
 * Optimized for speed and semantic markup.
 */

:root {
    --ck-primary: #2563eb;
    --ck-primary-hover: #1d4ed8;
    --ck-text: #1e293b;
    --ck-text-light: #64748b;
    --ck-bg: #ffffff;
    --ck-bg-alt: #f8fafc;
    --ck-border: #e2e8f0;
    --ck-radius-lg: 1rem;
    --ck-radius-md: 0.75rem;
    --ck-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ck-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ck-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: var(--ck-font);
    color: var(--ck-text);
    line-height: 1.5;
}

.ck-container * {
    box-sizing: border-box;
}

.ck-container h2, .ck-container h3, .ck-container h4 {
    margin: 0 0 0.5rem 0;
    color: var(--ck-text);
    font-weight: 700;
}

.ck-container p {
    margin: 0 0 1rem 0;
    color: var(--ck-text-light);
}

.ck-container a {
    color: var(--ck-primary);
    text-decoration: none;
}

.ck-container a:hover {
    text-decoration: underline;
}

/* Search Form */
.ck-search {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ck-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    font-size: 1rem;
    color: var(--ck-text);
    outline: none;
    transition: border-color 0.2s;
}

.ck-search-input:focus {
    border-color: var(--ck-primary);
}

.ck-search-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--ck-primary);
    color: white;
    border: none;
    border-radius: var(--ck-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ck-search-btn:hover {
    background-color: var(--ck-primary-hover);
}

/* Card Container */
.ck-card {
    background: var(--ck-bg-alt);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--ck-shadow);
}

/* Main Weather */
.ck-weather-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ck-weather-info {
    flex: 1;
}

.ck-weather-title {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.ck-weather-date {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ck-text-light);
    margin-bottom: 1.5rem;
}

.ck-weather-temp-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ck-weather-temp {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.ck-weather-desc {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--ck-border);
    padding-left: 1.5rem;
}

.ck-weather-desc-main {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: capitalize;
}

.ck-weather-desc-sub {
    font-size: 0.875rem;
    color: var(--ck-text-light);
}

.ck-weather-icon-main {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

/* Forecast */
.ck-forecast {
}

.ck-forecast-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ck-border);
}

.ck-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.ck-forecast-item {
    background: var(--ck-bg);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}

a.ck-forecast-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--ck-shadow);
    text-decoration: none;
    border-color: var(--ck-primary);
}

.ck-forecast-day {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ck-text-light);
}

.ck-forecast-date {
    font-size: 0.75rem;
    color: var(--ck-text-light);
    margin-bottom: 0.5rem;
}

.ck-forecast-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
}

.ck-forecast-temp {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.ck-forecast-desc {
    font-size: 0.75rem;
    color: var(--ck-text-light);
    text-transform: capitalize;
}

/* Info Snippet */
.ck-info {
    border-left: 4px solid var(--ck-primary);
}

.ck-info-title {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ck-info-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Common Section Title */
.ck-section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ck-border);
}

/* FAQ */
.ck-faq {
}

.ck-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ck-faq-item {
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    overflow: hidden;
}

.ck-faq-q {
    background: var(--ck-bg-alt);
    padding: 1rem 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--ck-border);
    margin: 0;
}

.ck-faq-a {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--ck-text-light);
}

/* Responsive */
@media (max-width: 640px) {
    .ck-weather-main {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .ck-weather-desc {
        border-left: none;
        border-top: 1px solid var(--ck-border);
        padding-left: 0;
        padding-top: 1rem;
    }

    .ck-weather-temp-wrap {
        flex-direction: column;
        gap: 1rem;
    }

    .ck-weather-title {
        font-size: 2rem;
    }

    .ck-search {
        flex-direction: column;
    }

    .ck-forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Recommendations */
.ck-rek {
    border-left: 4px solid var(--ck-primary);
}
.ck-rek-header {
    margin-bottom: 1.5rem;
}
.ck-rek-subtitle {
    font-size: 0.875rem;
    color: var(--ck-text-light);
    margin: 0.5rem 0 0 0;
}
.ck-rek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.ck-rek-card {
    background: var(--ck-bg);
    border: 1px solid var(--ck-border);
    border-radius: var(--ck-radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ck-text);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.ck-rek-card:hover {
    border-color: var(--ck-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
}
.ck-rek-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--ck-primary);
}
.ck-rek-icon {
    width: 1rem;
    height: 1rem;
    color: var(--ck-primary);
    flex-shrink: 0;
}
.ck-rek-name {
    font-size: 0.875rem;
    font-weight: 700;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ck-rek-arrow {
    color: var(--ck-text-light);
    font-weight: 800;
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}
.ck-rek-card:hover .ck-rek-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--ck-primary);
}

/* Referensi */
.ck-ref {
    border-left: 4px solid var(--ck-primary);
}
.ck-ref-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.ck-ref-text {
    font-size: 0.95rem;
    color: var(--ck-text-light);
}
.ck-ref-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ck-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    background: var(--ck-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--ck-border);
}
.ck-ref-link:hover {
    background: var(--ck-primary);
    color: white;
    border-color: var(--ck-primary);
}

/* 404 Error */
.ck-error {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--ck-bg-alt);
    border: 1px dashed var(--ck-border);
    border-radius: var(--ck-radius-lg);
    margin: 2rem 0;
}
.ck-error svg {
    width: 3rem;
    height: 3rem;
    color: #ef4444;
    margin: 0 auto 1rem auto;
}
.ck-error-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ef4444;
}
.ck-error-text {
    margin-bottom: 1.5rem;
}

