/* =========================================================
   Razorpay Events Manager – Frontend Styles
   Theme-agnostic: uses only scoped .rem-* classes
   ========================================================= */

/* ---------- Grid ---------- */
.rem-events-grid {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}
.rem-cols-1 { grid-template-columns: 1fr; }
.rem-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rem-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rem-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .rem-cols-3, .rem-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .rem-cols-2, .rem-cols-3, .rem-cols-4 { grid-template-columns: 1fr; }
}

/* ---------- Card ---------- */
.rem-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.rem-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }

.rem-card-thumb {
    position: relative;
    background: #f4f4f4;
    min-height: 160px;
}
.rem-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.rem-no-thumb {
    height: 60px;
}

/* ---------- Badges ---------- */
.rem-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
}
.rem-badge-upcoming { background: #2563eb; }
.rem-badge-current  { background: #16a34a; }
.rem-badge-past     { background: #6b7280; }

/* ---------- Card body ---------- */
.rem-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rem-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}
.rem-card-title a {
    text-decoration: none;
    color: inherit;
}
.rem-card-title a:hover { color: #2563eb; }

.rem-card-meta {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.rem-card-footer {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Price badge ---------- */
.rem-price {
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}
.rem-free { background: #dcfce7; color: #15803d; }
.rem-paid { background: #fff7ed; color: #c2410c; }

.rem-seats {
    font-size: 12px;
    color: #888;
}

/* ---------- Buttons ---------- */
.rem-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
    line-height: 1.4;
}
.rem-btn:hover { opacity: .88; }
.rem-btn-primary {
    background: #2563eb;
    color: #fff !important;
}
.rem-btn-soldout {
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

/* ---------- No events ---------- */
.rem-no-events {
    text-align: center;
    color: #888;
    padding: 32px 0;
}

/* ---------- Registration Form ---------- */
.rem-register-wrap {
    max-width: 480px;
    margin: 32px auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.rem-register-heading {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}
.rem-form-row {
    margin-bottom: 14px;
}
.rem-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}
.rem-form-row input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.rem-form-row input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}
.rem-form-price-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 16px;
    color: #0369a1;
}
.rem-submit-btn {
    width: 100%;
    padding: 11px;
    font-size: 15px;
    margin-top: 4px;
}
.rem-submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---------- Notices ---------- */
.rem-form-message {
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 16px;
    font-size: 14px;
}
.rem-form-message.rem-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}
.rem-form-message.rem-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}
.rem-notice {
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 14px;
    margin: 12px 0;
}
.rem-expired { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }
.rem-soldout { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* =========================================================
   Single Event Page
   ========================================================= */
.rem-single-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* Hero image */
.rem-single-hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #f3f4f6;
    min-height: 60px;
}
.rem-single-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.rem-badge-lg {
    font-size: 13px;
    padding: 5px 14px;
}

/* Title */
.rem-single-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.25;
}

/* Meta info strip */
.rem-single-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 28px;
}
.rem-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.rem-meta-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.rem-meta-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rem-meta-item strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
}
.rem-meta-item span {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

/* Description */
.rem-single-description {
    margin-bottom: 32px;
    line-height: 1.7;
}
.rem-single-description h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

/* Register section */
.rem-single-register {
    margin-top: 16px;
}
.rem-single-register .rem-register-wrap {
    margin: 0;
    max-width: 100%;
}

@media (max-width: 600px) {
    .rem-single-title { font-size: 22px; }
    .rem-single-meta  { grid-template-columns: 1fr; }
}
