/* =================== DETAIL PAGES STYLING =================== */

/* =================== RESET =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

/* =================== HEADER SECTION =================== */
.page-header {
    background: white;
    padding: 20px;
    margin-top: 80px;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #dc3545;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: #dc3545;
    font-size: 32px;
}

.page-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* =================== MAIN CONTENT =================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =================== DESCRIPTION SECTION =================== */
.description-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    border: 1px solid #e5e7eb;
}

.description-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

.description-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

/* =================== SECTION =================== */
.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.section-title i {
    color: #dc3545;
    font-size: 24px;
}

/* =================== GRID =================== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* =================== CARD =================== */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #dc3545;
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f4f6;
}

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.card-type {
    font-size: 12px;
    color: #dc3545;
    font-weight: 600;
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-link {
    color: #dc3545;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.card-link:hover {
    color: #b71c1c;
}

/* =================== EMPTY STATE =================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.empty-state i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.empty-state p {
    color: #9ca3af;
    font-size: 15px;
}

/* =================== INFO BOX =================== */
.info-box {
    background: #f0f4f8;
    border-left: 4px solid #dc3545;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-box p {
    margin: 8px 0;
    color: #475569;
    font-size: 14px;
}

.info-box strong {
    color: #111827;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.stars {
    color: #fbbf24;
    font-size: 18px;
}

/* =================== INFO GRID =================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}

.info-item i {
    color: #dc3545;
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.info-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.info-item p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
    .page-header {
        padding: 16px;
        margin-top: 70px;
    }

    .page-title {
        font-size: 24px;
    }

    .page-title i {
        font-size: 28px;
    }

    .main-content {
        padding: 24px 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .card-image {
        height: 150px;
    }

    .card-body {
        padding: 12px;
    }

    .description-box {
        padding: 20px;
    }

    .description-box h3 {
        font-size: 16px;
    }

    .description-box p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }

    .page-title i {
        font-size: 24px;
    }

    .section-title {
        font-size: 16px;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 160px;
    }

    .main-content {
        padding: 16px;
    }

    .description-box {
        padding: 16px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .page-subtitle {
        font-size: 13px;
    }
}

/* =================== PLATFORM BUTTONS =================== */
.platform-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 50px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.platform-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
}

.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 160px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.platform-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    margin-right: 4px;
}

/* Specific Platform Styles */
.btn-gojek {
    background-color: #00aa13;
    color: white;
}

.btn-grab {
    background-color: #ffffff;
    color: #00b14f;
    border: 1px solid #00b14f;
}

.btn-maxim {
    background-color: #ffcc00;
    color: black;
}

@media (max-width: 480px) {
    .platform-buttons {
        flex-direction: column;
    }

    .platform-btn {
        width: 100%;
    }
}

/* Icon-only button modifier */
.platform-btn-icon {
    width: 60px;
    height: 60px;
    padding: 0;
    min-width: unset;
    border-radius: 12px;
    /* Square with rounded corners */
}

.platform-btn-icon .platform-logo {
    margin-right: 0;
    height: 45px;
    width: 45px;
}

/* Remove specific colors for icon buttons */
.platform-btn-icon.btn-gojek,
.platform-btn-icon.btn-grab,
.platform-btn-icon.btn-maxim {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: inherit;
    box-shadow: none;
    /* remove potential box-shadow */
}

.platform-btn-icon:hover {
    border-color: #dc3545;
    /* Optional: standard hover from card hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* re-add subtle shadow on hover */
}