/*
 Theme Name:   Astra Child - Kayuh
 Theme URI:    https://kayuh.my
 Description:  Astra Child Theme for Kayuh.my
 Author:       Kayuh
 Author URI:   https://kayuh.my
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child-kayuh
*/

/* ==========================================================================
   KAYUH SINGLE EVENT PAGE STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.kayuh-event-hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #1a3a32;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
}

.kayuh-event-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.kayuh-event-hero > * {
    position: relative;
    z-index: 2;
}

/* Sport Badge */
.kayuh-sport-badge {
    display: inline-block;
    background-color: #FF4A1C;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    position: absolute;
    top: 24px;
    left: 40px;
}

/* Category Tags */
.kayuh-category-tags {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

/* Event Title */
.kayuh-event-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 16px 0;
    max-width: 600px;
}

/* Breadcrumb */
.kayuh-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.kayuh-breadcrumb a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.kayuh-breadcrumb a:hover {
    color: #fff;
}

.kayuh-breadcrumb span {
    margin: 0 8px;
}

/* --------------------------------------------------------------------------
   2. MAIN CONTENT LAYOUT
   -------------------------------------------------------------------------- */
.kayuh-event-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

@media (max-width: 968px) {
    .kayuh-event-content {
        grid-template-columns: 1fr;
    }
    
    .kayuh-event-sidebar {
        order: -1;
    }
}

/* --------------------------------------------------------------------------
   3. META STRIP
   -------------------------------------------------------------------------- */
.kayuh-meta-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: #F7F7F7;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
    gap: 16px;
}

@media (max-width: 600px) {
    .kayuh-meta-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.kayuh-meta-item {
    display: flex;
    flex-direction: column;
}

.kayuh-meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9A9A9A;
    margin-bottom: 6px;
}

.kayuh-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.4;
}

.kayuh-meta-subvalue {
    font-size: 13px;
    font-weight: 400;
    color: #6E6E6E;
    margin-top: 2px;
}

.kayuh-meta-value.price {
    color: #FF4A1C;
}

/* --------------------------------------------------------------------------
   4. CONTENT SECTIONS
   -------------------------------------------------------------------------- */
.kayuh-section {
    margin-bottom: 32px;
}

.kayuh-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 16px 0;
    padding-left: 12px;
    border-left: 3px solid #FF4A1C;
}

.kayuh-section-content {
    font-size: 15px;
    line-height: 1.7;
    color: #6E6E6E;
}

.kayuh-section-content p {
    margin: 0 0 16px 0;
}

.kayuh-section-content p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   5. CATEGORIES & FEES TABLE
   -------------------------------------------------------------------------- */
.kayuh-fees-table {
    width: 100%;
    border-collapse: collapse;
}

.kayuh-fees-table th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9A9A9A;
    text-align: left;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #EAEAEA;
}

.kayuh-fees-table td {
    font-size: 15px;
    color: #1A1A1A;
    padding: 14px 0;
    border-bottom: 1px solid #EAEAEA;
}

.kayuh-fees-table tr:last-child td {
    border-bottom: none;
}

.kayuh-fees-table .fee {
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. SIDEBAR
   -------------------------------------------------------------------------- */
.kayuh-event-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.kayuh-sidebar-card {
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 24px;
}

/* Price Display */
.kayuh-price-display {
    margin-bottom: 8px;
}

.kayuh-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
}

.kayuh-price-suffix {
    font-size: 15px;
    font-weight: 400;
    color: #6E6E6E;
}

.kayuh-price-source {
    font-size: 13px;
    color: #9A9A9A;
    margin-bottom: 20px;
}

/* Buttons */
.kayuh-btn-register {
    display: block;
    width: 100%;
    background-color: #FF4A1C;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 999px;
    margin-bottom: 12px;
    transition: background-color 0.2s ease;
}

.kayuh-btn-register:hover {
    background-color: #e8431a;
    color: #fff;
}

.kayuh-btn-details {
    display: block;
    width: 100%;
    background-color: #fff;
    color: #1A1A1A;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid #EAEAEA;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.kayuh-btn-details:hover {
    border-color: #1A1A1A;
    color: #1A1A1A;
}

/* Sidebar Info Items */
.kayuh-sidebar-info {
    border-top: 1px solid #EAEAEA;
    padding-top: 20px;
}

.kayuh-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.kayuh-info-item:last-child {
    margin-bottom: 0;
}

.kayuh-info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #9A9A9A;
}

.kayuh-info-label {
    font-size: 12px;
    color: #9A9A9A;
}

.kayuh-info-value {
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 500;
}

/* Sidebar Map */
.kayuh-sidebar-map {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #F7F7F7;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kayuh-sidebar-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Share Buttons */
.kayuh-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #EAEAEA;
}

.kayuh-share-label {
    font-size: 13px;
    color: #9A9A9A;
}

.kayuh-share-btn {
    font-size: 13px;
    font-weight: 500;
    color: #1A1A1A;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.kayuh-share-btn:hover {
    background-color: #F7F7F7;
}

/* --------------------------------------------------------------------------
   7. RELATED EVENTS
   -------------------------------------------------------------------------- */
.kayuh-related-events {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    border-top: 1px solid #EAEAEA;
}

.kayuh-related-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 24px 0;
    padding-left: 12px;
    border-left: 3px solid #FF4A1C;
}

.kayuh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .kayuh-related-grid {
        grid-template-columns: 1fr;
    }
}

.kayuh-related-card {
    text-decoration: none;
    color: inherit;
}

.kayuh-related-card-image {
    aspect-ratio: 16/10;
    background-color: #1a3a32;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 12px;
}

.kayuh-related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
}

.kayuh-related-card-meta {
    font-size: 13px;
    color: #9A9A9A;
}
