/* =========================
   PENTAS PAGE STYLES
========================= */

/* Hero Section */
.pentas-hero {
    padding: 190px 60px 60px;
    text-align: center;
}

.pentas-hero .page-title {
    color: #000000;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.pentas-hero .page-subtitle {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.2rem;
}

/* Pentas Section */
.pentas-section {
    padding: 60px 20px;
    background: #fdf8f3;
}

.pentas-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Past Section Styling */
.past-section {
    opacity: 0.85;
}

/* Section Heading */
.section-heading {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.section-heading i {
    color: #d52c2c;
    font-size: 1.3rem;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Pentas Card - Neobrutalism Design */
.pentas-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.pentas-card:hover {
    transform: scale(1) translate(-4px, -4px);
    box-shadow: 12px 12px 0 #000;
    z-index: 10;
    background: #d52c2c;
}

/* Hover state - change all text to white */
.pentas-card:hover .pentas-card-content {
    background: #d52c2c;
    color: #fff;
}

.pentas-card:hover .pentas-card-content h3 {
    color: #fff;
}

.pentas-card:hover .event-price {
    color: #fff !important;
}

.pentas-card:hover .pentas-card-excerpt {
    color: #fff !important;
}

.pentas-card:hover .pentas-card-meta {
    color: #fff;
}

.pentas-card:hover .pentas-card-meta i {
    color: #fff;
}

/* Past Card - Different Hover */
.past-card:hover {
    transform: scale(1) translate(-2px, -2px);
    box-shadow: 10px 10px 0 #000;
}

/* Card Image */
.pentas-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    /* Set a default aspect ratio to prevent layout jumping, or leave auto */
    /* height: 250px; Removed fixed height */
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #000;
}

.pentas-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pentas-card:hover .pentas-card-image img {
    transform: scale(1.05);
}

/* Past Card Image Grayscale */
.past-card .pentas-card-image img {
    filter: grayscale(50%);
}

/* Cover Placeholder */
.pentas-cover-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 64px;
}

.pentas-cover-placeholder.past {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    color: rgba(255, 255, 255, 0.5);
}

/* Event Date Badge */
.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d52c2c;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.2;
    z-index: 3;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.event-date-badge .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Event Badges */
.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.event-badge.free {
    background: #28a745;
    color: #fff;
}

.event-badge.past {
    background: #666;
    color: #fff;
}

.event-badge.upcoming {
    background: #000;
    color: #fff;
}

/* Card Content */
.pentas-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-top: 3px solid #000;
    transition: all 0.3s ease;
    min-height: 280px;
}

/* Card Meta */
.pentas-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.pentas-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pentas-card-meta i {
    color: #d52c2c;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Title - Rapi 2 baris */
.pentas-card-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.45;
    transition: color 0.3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Event Price */
.event-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d52c2c;
    margin: 10px 0;
    transition: color 0.3s ease;
}

/* Excerpt - 2 baris saja */
.pentas-card-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: auto;
    transition: color 0.3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Button */
.pentas-card-content .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: 3px solid #000;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 8px;
    background: #d52c2c;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 #000;
    margin-top: 15px;
}

.pentas-card-content .btn-outline:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.pentas-card-content .btn-outline:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

/* When card is hovered */
.pentas-card:hover .pentas-card-content .btn-outline {
    background: #000;
    color: #fff;
}

.pentas-card:hover .pentas-card-content .btn-outline:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #fff;
}

.pentas-card:hover .pentas-card-content .btn-outline:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: #ddd;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    font-size: 1rem;
}

/* =========================
   DETAIL PAGE
========================= */

.pentas-hero-detail {
    padding: 190px 60px 60px;
    text-align: center;
}

.pentas-back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pentas-back-link:hover {
    color: #d52c2c;
}

.pentas-detail-title {
    color: #000;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.pentas-detail-meta {
    color: #666;
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.pentas-detail-meta i {
    color: #d52c2c;
    margin-right: 5px;
}

/* Detail Section */
.pentas-detail-section {
    padding: 40px 20px 80px;
    background: #fdf8f3;
}

.pentas-detail-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.pentas-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* Main Content */
.pentas-main-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
}

.pentas-featured-image {
    width: 100%;
    height: auto;
    /* max-height: 400px; Removed to respect original aspect ratio */
    /* object-fit: cover; Removed */
    border-radius: 12px;
    margin-bottom: 30px;
    display: block;
    border: 3px solid #000;
}

.pentas-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #d52c2c 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 30px;
}

.placeholder-content {
    text-align: center;
    color: #fff;
}

.placeholder-content i {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

.placeholder-content span {
    font-size: 20px;
    font-weight: 600;
}

/* Content Body */
.pentas-content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.pentas-content-body h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pentas-content-body h3 i {
    color: #d52c2c;
}

.pentas-content-body p {
    margin-bottom: 20px;
    color: #555;
}

/* Location Box */
.event-location-box {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    margin: 25px 0;
}

.event-location-box h4 {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-location-box h4 i {
    color: #d52c2c;
}

.event-location-box .venue-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.event-location-box .venue-address {
    color: #666;
    font-size: 0.95rem;
}

/* Share Section */
.share-section {
    padding-top: 25px;
    border-top: 2px solid #eee;
    margin-top: 25px;
}

.share-section h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-section h4 i {
    color: #d52c2c;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.pentas-detail-section .share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 3px 3px 0 #000;
}

.pentas-detail-section .share-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
}

.pentas-detail-section .share-btn.whatsapp {
    background: #25D366;
}

.pentas-detail-section .share-btn.twitter {
    background: #1DA1F2;
}

.pentas-detail-section .share-btn.facebook {
    background: #4267B2;
}

/* Footer */
.pentas-footer {
    padding-top: 25px;
    margin-top: 25px;
    border-top: 2px solid #eee;
}

.pentas-footer .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 3px solid #000;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    background: #d52c2c;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 #000;
}

.pentas-footer .btn-outline:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
}

.pentas-footer .btn-outline:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

/* Sidebar */
.pentas-sidebar {
    position: sticky;
    top: 100px;
}

/* Ticket Widget */
.sidebar-ticket-widget {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
    margin-bottom: 25px;
}

.ticket-widget-header {
    background: linear-gradient(135deg, #d52c2c 0%, #a01c1c 100%);
    padding: 18px 20px;
}

.ticket-widget-header h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.ticket-widget-body {
    padding: 25px;
}

/* Ticket Price Display */
.ticket-price-display {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.ticket-price-display .price-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
}

.ticket-price-display .price-value {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
}

.ticket-price-display .price-value.free {
    color: #28a745;
}

.ticket-price-display .price-value.paid {
    color: #d52c2c;
}

/* Ticket Availability */
.ticket-availability {
    text-align: center;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.ticket-availability .available {
    color: #28a745;
    font-weight: 600;
}

.ticket-availability .sold-out {
    color: #dc3545;
    font-weight: 600;
}

.ticket-availability i {
    margin-right: 5px;
}

/* Attendee Info */
.attendee-info {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.attendee-info i {
    margin-right: 5px;
}

/* Register Button */
.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    background: #d52c2c;
    color: #fff;
    border: 3px solid #000;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 #000;
}

.btn-register:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #000;
    color: #fff;
}

.btn-register:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
}

.btn-register.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-register.disabled:hover {
    transform: none;
    box-shadow: 4px 4px 0 #000;
}

/* Details Widget */
.sidebar-details-widget {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    border: 3px solid #000;
    box-shadow: 8px 8px 0 #000;
}

.sidebar-widget-title {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.event-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-details-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.event-details-list li:last-child {
    border-bottom: none;
}

.event-details-list li i {
    color: #d52c2c;
    width: 20px;
    text-align: center;
    margin-top: 3px;
    font-size: 1rem;
}

.event-details-list li .label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.event-details-list li .value {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* ============================================
   SIDEBAR CONTRIBUTORS WIDGET
   Tambahkan ke: public/assets/css/pentas.css
   ============================================ */

.sidebar-contributors-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.contributors-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contributor-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contributor-avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.contributor-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.contributor-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    padding: 4px 6px;
    margin: -4px -6px;
    transition: background 0.2s;
}

.contributor-link:hover {
    background: #f5f5f5;
}

.contributor-link:hover .contributor-name {
    color: #c0392b;
}

/* WhatsApp Contact Button */
.btn-wa-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background-color: #25D366;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-wa-contact:hover {
    background-color: #1ebe5a;
    color: #fff;
}

/* Komunitas Widget - sama style dengan contributors */
.sidebar-community-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.pentas-search-form {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.pentas-search-wrap {
    display: flex;
    width: 100%;
    max-width: 500px;
    border: 2px solid #ddd;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pentas-search-wrap:focus-within {
    border-color: var(--primary-color, #e63946);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pentas-search-icon {
    padding: 12px 0 12px 16px;
    color: #999;
    display: flex;
    align-items: center;
}

.pentas-search-input {
    flex: 1;
    padding: 12px 12px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.pentas-search-input::placeholder {
    color: #999;
}

.pentas-search-clear {
    padding: 12px 8px;
    color: #999;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s;
}

.pentas-search-clear:hover {
    color: var(--primary-color, #e63946);
}

.pentas-search-btn {
    padding: 12px 20px;
    background: var(--primary-color, #e63946);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.pentas-search-btn:hover {
    background: var(--primary-dark, #c0202d);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .pentas-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .pentas-sidebar {
        position: static;
        order: 2;
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pentas-hero {
        padding: 60px 20px 40px;
    }

    .pentas-hero .page-title {
        font-size: 2rem;
    }

    .pentas-section {
        padding: 40px 15px;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-heading {
        font-size: 1.2rem;
    }

    .pentas-hero-detail {
        padding: 60px 20px 40px;
    }

    .pentas-detail-title {
        font-size: 1.8rem;
    }

    .pentas-detail-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.9rem;
    }

    .pentas-main-content {
        padding: 20px;
    }

    .pentas-content-body h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {

    .events-grid {
        grid-template-columns: 1fr; /* 1 kolom di HP kecil saja */
    }
    
    .pentas-section {
        padding: 30px 10px;
    }

    .pentas-card-content {
        padding: 15px;
    }

    .pentas-card-meta {
        flex-direction: column;
        gap: 6px;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

.btn-outline:focus,
.btn-register:focus,
.share-btn:focus {
    outline: 3px solid rgba(213, 44, 44, 0.4);
    outline-offset: 2px;
}