/**
 * Real Shine Event – Frontend Product Page Styles
 *
 * Styles for vendor category selection, product list, and agreement fields.
 */

/* Vendor Fields Container */
.rse-vendor-fields {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9ff;
    border: 1px solid #e0e5f0;
    border-radius: 10px;
}

.rse-vendor-fields h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f3460;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0f3460;
}

/* Field Rows */
.rse-field {
    margin-bottom: 1rem;
}

.rse-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
    font-size: 0.95rem;
}

.rse-field label abbr.required {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 700;
}

/* Select */
.rse-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccd0da;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 12px;
}

.rse-select:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
    outline: none;
}

.rse-select option:disabled {
    color: #c0c0c0;
}

/* Textarea */
.rse-textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccd0da;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rse-textarea:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
    outline: none;
}

/* Checkbox */
.rse-checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
    cursor: pointer;
}

.rse-checkbox-field input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #0f3460;
}

/* Error States */
.rse-field-error .rse-select,
.rse-field-error .rse-textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.rse-field-error label {
    color: #e74c3c;
}

.rse-error-msg {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #e74c3c;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .rse-vendor-fields {
        padding: 1rem;
        margin: 1rem 0;
    }

    .rse-vendor-fields h4 {
        font-size: 1rem;
    }
}

/* ===== Date Badge (Shop/Category Loop) ===== */
.rse-date-badge {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.4rem 0 0;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(135deg, #f0f4ff, #e8edf8);
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #444;
}

.rse-date-badge-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rse-countdown-line {
    padding-left: 1.4rem;
}

.rse-date-badge-icon {
    font-size: 0.9rem;
}

.rse-date-badge-text {
    font-weight: 500;
    color: #333;
}

.rse-date-duration {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.1rem 0.4rem;
    background: #0f3460;
    color: #fff;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ===== Countdown Badge ===== */
.rse-countdown {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    margin-left: auto;
}

.rse-countdown-urgent {
    background: #ffe0e0;
    color: #c0392b;
}

.rse-countdown-soon {
    background: #fff3e0;
    color: #e67e22;
}

.rse-countdown-active {
    background: #e0f8e8;
    color: #27ae60;
}

.rse-countdown-ended {
    background: #f0f0f0;
    color: #999;
}

.rse-countdown-closed {
    background: #fce4ec;
    color: #b71c1c;
}

/* ===== Registration Closed Notice ===== */
.rse-registration-closed {
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    border: 1px solid #ffcdd2;
}

.rse-closed-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.rse-closed-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.rse-closed-notice p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #b71c1c;
    line-height: 1.5;
}

/* ===== Product Date Info (Single Product Page) ===== */
.rse-product-date-info {
    margin: 1rem 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #f8f9ff, #f0f3fa);
    border: 1px solid #e0e5f0;
    border-radius: 10px;
}

.rse-date-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.rse-date-row+.rse-date-row {
    border-top: 1px solid #e8ecf4;
}

.rse-countdown-row {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-top: none !important;
}

.rse-date-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.rse-date-details {
    flex: 1;
    min-width: 0;
}

.rse-date-label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.rse-date-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
}

.rse-duration-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.12rem 0.5rem;
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: #fff;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    vertical-align: middle;
}

.rse-reg-countdown {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    animation: rse-pulse-glow 2s ease-in-out infinite;
}

.rse-reg-today {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    animation: rse-pulse-glow 1s ease-in-out infinite;
}

@keyframes rse-pulse-glow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .rse-date-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }

    .rse-product-date-info {
        padding: 0.75rem 1rem;
    }

    .rse-date-row {
        flex-wrap: wrap;
    }

    .rse-countdown {
        margin-left: 0;
        margin-top: 0.3rem;
    }
}

/* ===== Reservation Mode (Gelecek Etkinlik) ===== */
.rse-reservation-mode {
    background: linear-gradient(135deg, #fffbf0, #fff5e0);
    border-color: #f0d080;
}

.rse-reservation-mode h4 {
    color: #b8860b;
    border-bottom-color: #b8860b;
}

.rse-kapora-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
}

.rse-kapora-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rse-kapora-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #5d4037;
    line-height: 1.5;
}

/* ===== Special Date Symbols ===== */
.rse-special-symbol-row {
    border-top: none !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.rse-special-symbols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.rse-symbol-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}

.rse-symbol-future {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #4a3500;
}

.rse-symbol-kurban {
    background: linear-gradient(135deg, #a8e063, #56ab2f);
    color: #1a3a0a;
}

.rse-symbol-ramazan {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.rse-symbol-yilbasi {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

/* ===== Etkinliklerim (My Events) ===== */
.rse-my-events-wrap {
    margin: 1rem 0;
}

.rse-my-events-wrap h3 {
    font-size: 1.3rem;
    color: #0f3460;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0f3460;
}

.rse-my-events-empty {
    text-align: center;
    padding: 2rem;
    background: #f8f9ff;
    border: 1px dashed #ccd0da;
    border-radius: 10px;
}

.rse-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.rse-my-events-empty p {
    color: #888;
    font-size: 1rem;
}

.rse-event-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid #e0e5f0;
    border-radius: 10px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.rse-event-card:hover {
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.1);
    transform: translateY(-1px);
}

.rse-event-reservation {
    border-left: 4px solid #f0a500;
}

.rse-event-purchased {
    border-left: 4px solid #27ae60;
}

.rse-event-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.rse-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rse-event-info {
    flex: 1;
    min-width: 0;
}

.rse-event-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.rse-event-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.rse-event-header h4 a {
    color: #1a1a2e;
    text-decoration: none;
}

.rse-event-header h4 a:hover {
    color: #0f3460;
}

.rse-event-status {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.rse-status-reservation {
    background: #fff3e0;
    color: #e65100;
}

.rse-status-purchased {
    background: #e8f5e9;
    color: #2e7d32;
}

.rse-event-symbols {
    font-size: 1.1rem;
}

.rse-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rse-meta-item {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

/* Responsive My Events */
@media (max-width: 768px) {
    .rse-event-card {
        flex-direction: column;
    }

    .rse-event-thumb {
        width: 100%;
        height: 150px;
    }

    .rse-event-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}