/*
 * Bileşen: ER-Card
 * Kullanım:
 * <div class="er-card">
 *   <div class="er-card-img-wrapper">...</div>
 *   <div class="er-card-content">...</div>
 * </div>
 * <div class="er-card er-card-horizontal">...</div>
 */

.er-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.er-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.er-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.er-card-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: #E2E8F0;
    overflow: hidden;
}

.er-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.er-card:hover .er-card-img-wrapper img {
    transform: scale(1.05);
}

.er-card-content {
    padding: 20px;
    flex-grow: 1;
}

.er-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.er-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.er-card-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.er-card-info i {
    width: 14px;
    height: 14px;
    color: var(--text-light);
}

.er-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.er-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.er-card-price i {
    width: 16px;
    height: 16px;
    color: #94A3B8; /* Açık Gri */
    stroke-width: 1.5;
}

.er-card-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.er-status-onsale {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.er-status-canceled {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.er-status-postponed {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

/* Horizontal Card Variant */
.er-card-horizontal {
    flex-direction: row;
    align-items: stretch;
}

.er-card-horizontal .er-card-img-wrapper {
    width: 200px;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .er-card-horizontal { flex-direction: column; }
    .er-card-horizontal .er-card-img-wrapper { width: 100%; aspect-ratio: 16/9; }
}

/* Modern Ticket Variant */
.er-ticket-modern {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.er-ticket-main {
    flex: 1;
    padding: 30px;
    border-right: 2px dashed var(--border-light);
    position: relative;
}

.er-ticket-main::before, .er-ticket-main::after {
    content: '';
    position: absolute;
    right: -11px;
    width: 20px;
    height: 20px;
    background: var(--bg-body);
    border-radius: 50%;
}

.er-ticket-main::before { top: -11px; }
.er-ticket-main::after { bottom: -11px; }

.er-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.er-ticket-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.er-meta-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.er-meta-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.er-ticket-side {
    width: 180px;
    background: #F8FAFC;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.er-qr-wrapper {
    width: 100px;
    height: 100px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.er-qr-wrapper i { width: 100% !important; height: 100% !important; }

.er-ticket-stub-info {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Overlay Card Variant (Hybrid: Content on Image, Footer outside) */
.er-card-overlay {
    position: relative;
    border: 1px solid var(--border-light);
    background: white;
    display: flex;
    flex-direction: column;
}

.er-card-overlay .er-card-img-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    width: 100%;
    overflow: hidden;
}

.er-card-overlay .er-card-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.er-card-overlay .er-card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.er-card-overlay .er-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 10;
    color: white;
    background: transparent;
    pointer-events: none; /* Metin üzerine tıklamayı engelle, hover'ı bozmasın */
}

.er-card-overlay .er-card-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.er-card-overlay .er-card-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    width: 100%;
}

.er-card-overlay .er-card-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.er-card-overlay .er-card-info i {
    color: #FFEE00;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.er-card-overlay .er-card-info .er-text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.er-card-overlay .er-card-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
}

@media (max-width: 768px) {
    .er-card-overlay .er-card-footer {
        padding: 10px 12px;
        gap: 5px;
    }
    
    .er-card-overlay .er-card-price {
        font-size: 0.8rem;
    }

    .er-card-overlay .er-card-footer .er-btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

.er-card-overlay .er-card-price {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}
