/* ============================================
   📁 FILE: buttons.css (Guest)
   📌 PURPOSE: Button grid styles
   ============================================ */

.section-group {
    padding: 0 24px;
    margin-bottom: 20px;
}

/* First group needs extra space after banner */
.section-group:first-of-type {
    margin-top: 12px;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 140px);
    gap: 12px;
    justify-content: center;
    max-width: 100%;
}

/* ==========================================
   BUTTON STYLES
   ========================================== */
.grid-btn {
    background-color: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 14px 10px;
    width: 140px;
    height: 105px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.06);
    font-family: inherit;
}

.btn-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-text {
    font-family: "Aptos", "Segoe UI", sans-serif;
    font-size: 0.9rem;
    letter-spacing: -0.2px;
    color: #0f2942;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

/* ==========================================
   COLOR CLASSES
   ========================================== */
.your-stay-icon {
    color: #1a73e8;
}
.emergency-icon {
    color: #dc3545;
}
.services-icon {
    color: #e67e22;
}
.transport-icon {
    color: #0f9f8f;
}

/* ==========================================
   EMERGENCY FOLDER
   ========================================== */
.folder-preview {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(220, 53, 69, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    padding: 6px;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.14);
    transition: all 0.3s ease;
}

.folder-preview i {
    color: #dc3545;
    font-size: 0.78rem;
    line-height: 1;
}

.emergency-folder-btn {
    background-color: #ffffff;
}

.emergency-folder-btn:hover {
    background-color: #ffffff;
    border-color: #f1f5f9;
}

.emergency-folder-btn:hover .folder-preview {
    transform: scale(1.08);
}

/* ==========================================
   HOVER EFFECTS
   ========================================== */
.grid-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(15, 41, 66, 0.1);
    border-color: #f1f5f9;
}

.grid-btn:hover .btn-icon {
    transform: scale(1.15);
}

.grid-btn:hover:has(.your-stay-icon) {
    background-color: #ffffff;
    border-color: #f1f5f9;
}

.transport-folder-btn .btn-icon,
.transport-child-btn i {
    color: var(--button-accent, #2563eb) !important;
}

.transport-folder-btn:hover,
.transport-child-btn:hover {
    background: #ffffff !important;
    border-color: #ececec !important;
}

/* Services is a regular top-level grid button and must share the exact same
   surface, border and shadow states as its neighbours. */
.grid-btn.services-folder-btn {
    background-color: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.06) !important;
}

.grid-btn.services-folder-btn:hover {
    background-color: #ffffff !important;
    border-color: #f1f5f9 !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 20px rgba(15, 41, 66, 0.1) !important;
}

.grid-btn:not(.emergency-folder-btn):not(.emergency-child-btn):hover {
    background-color: #ffffff;
    border-color: #f1f5f9;
}

/* ==========================================
   RESPONSIVE (Mobile)
   ========================================== */
@media (max-width: 600px) {
    .section-group {
        padding: 0 12px;
        margin-bottom: 16px;
    }

    .buttons-grid {
        grid-template-columns: repeat(4, 76px);
        justify-content: center;
        column-gap: 8px;
        row-gap: 10px;
    }

    .grid-btn {
        width: 100%;
        max-width: 76px;
        height: 78px;
        padding: 8px 2px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(15, 41, 66, 0.05);
        margin: 0 auto;
    }

    .grid-btn.services-folder-btn {
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(15, 41, 66, 0.05) !important;
    }

    .grid-btn .btn-icon {
        font-size: 1.15rem !important;
        margin-bottom: 4px;
    }

    .grid-btn .btn-text {
        font-size: 0.65rem !important;
        white-space: normal;
        line-height: 1.2;
    }

    .folder-preview {
        width: 30px;
        height: 30px;
        margin-bottom: 4px;
        border-radius: 10px;
        padding: 4px;
    }

    .folder-preview i {
        font-size: 0.55rem;
    }
}
