/* Extracted by CSS Consolidation Phase 5 */
/* ================================================================
       WEB / DESKTOP DEFAULT STYLES (Smaller Font Size for Web)
       ================================================================ */
.clickable-card {
    cursor: pointer;
    transition: all .3s ease;
}

    .clickable-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.15);
        border-color: #c0392b;
    }

.bp-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bp-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .bp-page-title:focus, .bp-page-title:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

.panchang-summary-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    color: #2D2D2D;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Location Info Bar */
.location-info-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 0.7rem 1.25rem;
    margin-bottom: 1.25rem;
    background: #f8f5f2;
    border: 1px solid #e8e0d8;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #5d4e3e;
}

.location-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

    .location-item i {
        color: #c0392b;
        font-size: 0.9rem;
    }

/* Grid Layouts */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.full-width-card {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
}

/* Card Containers */
.column-card {
    background: #ffffff;
    border: 1px solid #e8e0d8;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
    height: fit-content;
}

    .column-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    }

.column-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    background: #f8f5f2;
    border-bottom: 1px solid #e8e0d8;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c3e50;
}

    .column-card-header i {
        color: #c0392b;
        font-size: 1rem;
    }

.badge-count {
    margin-left: auto;
    padding: 0.1rem 0.6rem;
    background: #e8e0d8;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #5d4e3e;
}

.column-card-body {
    padding: 0.6rem 1rem;
}

/* Base Info Rows (Original Font Size for Web) */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0ebe5;
    font-size: 0.82rem;
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-label {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 0.75rem;
}

.info-value {
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    font-size: 0.82rem;
}

/* Compact Lists (Events) */
.compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 250px;
    overflow-y: auto;
}

.compact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    background: #faf8f6;
    border-radius: 6px;
    font-size: 0.75rem;
    flex-wrap: wrap;
}

.compact-name {
    font-weight: 700;
    color: #2c3e50;
    min-width: 70px;
}

.compact-detail {
    color: #7f8c8d;
    font-size: 0.7rem;
    background: #f0ebe5;
    padding: 0.05rem 0.5rem;
    border-radius: 999px;
}

.compact-time {
    color: #5d4e3e;
    font-size: 0.7rem;
    margin-left: auto;
    white-space: nowrap;
}

/* Loading State */
.loading-panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e8e0d8;
    border-radius: 12px;
    background: #faf8f6;
    color: #5d4e3e;
}

    .loading-panel strong {
        font-size: 0.82rem;
        display: block;
    }

    .loading-panel span {
        margin-top: 0.15rem;
        color: #7f8c8d;
        font-size: 0.68rem;
        display: block;
    }

.loading-spinner {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: 3px solid #e8dcd2;
    border-top-color: #c0392b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error State */
.error-panel {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid #f5c8c8;
    border-left: 4px solid #c0392b;
    border-radius: 10px;
    background: #fdf5f5;
}

.error-icon {
    color: #c0392b;
    font-size: 1.2rem;
}

.error-content strong {
    color: #8c2f2f;
    font-size: 0.8rem;
    display: block;
}

.error-content span {
    margin-top: 0.2rem;
    color: #8a5c5c;
    font-size: 0.68rem;
    display: block;
}

.retry-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #c0392b;
    border-radius: 7px;
    background: #c0392b;
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

/* Read More Button */
.read-more-container {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.06), rgba(231, 76, 60, 0.03));
    border: 2px dashed #d5c8c0;
    border-radius: 14px;
    transition: all 0.3s ease;
}

    .read-more-container:hover {
        border-color: #c0392b;
        background: linear-gradient(135deg, rgba(192, 57, 43, 0.1), rgba(231, 76, 60, 0.06));
    }

.read-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.read-more-hint {
    margin-top: 0.75rem;
    color: #7f8c8d;
    font-size: 0.78rem;
}


/* ================================================================
       RESPONSIVE (MAUI / MOBILE) - Larger Font Size for Mobile Apps
       ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .three-col-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .full-width-card {
        grid-column: 1 / -1;
    }
}

/* Mobile (MAUI) */
@media (max-width: 768px) {
    .bp-page-title {
        font-size: 1.6rem;
    }

    .panchang-summary-page {
        padding: 0 0.65rem 1.25rem;
    }
    
    .location-info-bar {
        padding: 0.5rem 0.8rem;
        gap: 0.3rem 1rem;
        font-size: 0.9rem !important;
        flex-wrap: wrap;
    }

    .location-item {
        white-space: normal;
    }
    
    .three-col-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .full-width-card {
        grid-column: 1;
    }
    /* Larger Text Overrides for Mobile Devices */
    .column-card-header {
        font-size: 1.1rem !important;
        padding: 0.8rem 1rem;
    }

        .column-card-header i {
            font-size: 1.2rem !important;
        }

    .column-card-body {
        padding: 0.6rem 1rem;
    }

    .info-row {
        font-size: 1.1rem !important;
        padding: 0.7rem 0 !important;
    }

    .info-label {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }

    .info-value {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }

    .compact-item {
        font-size: 1rem !important;
        padding: 0.6rem 0.8rem;
    }

    .compact-name {
        min-width: 70px;
        font-size: 1rem !important;
        font-weight: 700 !important;
    }

    .compact-time {
        font-size: 0.95rem !important;
        margin-left: 0;
        width: 100%;
        font-weight: 600 !important;
    }

    .read-more-container {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
    }

    .read-more-button {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem;
    }

    .read-more-hint {
        font-size: 0.85rem !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .bp-page-title {
        font-size: 1.3rem;
    }

    .panchang-summary-page {
        padding: 0 0.5rem 1rem;
    }
    
    .column-card-header {
        font-size: 1rem !important;
        padding: 0.6rem 0.8rem;
    }

    .info-row {
        font-size: 1rem !important;
        padding: 0.6rem 0 !important;
    }

    .info-label {
        font-size: 0.95rem !important;
    }

    .info-value {
        font-size: 1rem !important;
    }
    
    .compact-item {
        font-size: 0.95rem !important;
        padding: 0.5rem 0.6rem;
    }

    .compact-name {
        min-width: 50px;
        font-size: 0.95rem !important;
    }

    .compact-detail {
        font-size: 0.8rem;
        padding: 0.05rem 0.4rem;
    }
    
    .read-more-button {
        font-size: 0.95rem !important;
        padding: 0.6rem 1.2rem;
    }
}

/* Touch Devices - Larger touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .info-row {
        min-height: 44px;
    }

    .compact-item {
        min-height: 40px;
    }

    .read-more-button {
        min-height: 48px;
    }

    .retry-button {
        min-height: 40px;
    }
}

.bp-kshaya-note {
    color: red;
    font-weight: bold;
}

.bp-vriddhi-note {
    color: green;
    font-weight: bold;
}

.bp-fw-medium {
    font-weight: 500;
}

.column-card-mb {
    margin-bottom: 1rem;
}
