/* ================================================
   Småland Event – Stilar
   ================================================ */

/* ── Eventlista (publik visning) ── */
.sm-events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.sm-event-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow 0.2s ease;
}

.sm-event-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

.sm-event-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    background: #b93d47;
    color: #fff;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.sm-event-day {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.sm-event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sm-event-details {
    flex: 1;
}

.sm-event-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: #1a1a1a;
}

.sm-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.sm-event-meta a {
    color: #b93d47;
    text-decoration: none;
}

.sm-event-meta a:hover {
    text-decoration: underline;
}

.sm-event-desc {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ── Frontend-formulär ── */
.sm-event-wrap {
    max-width: 700px;
}

.sm-event-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sm-event-field {
    margin-bottom: 1rem;
}

.sm-event-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #374151;
}

.sm-event-field input[type="text"],
.sm-event-field input[type="date"],
.sm-event-field input[type="time"],
.sm-event-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.sm-event-field input:focus,
.sm-event-field textarea:focus {
    outline: none;
    border-color: #b93d47;
    box-shadow: 0 0 0 2px rgba(139,26,26,.15);
}

.sm-event-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.sm-req {
    color: #b93d47;
}

/* ── Knappar ── */
.sm-event-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #b93d47;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    margin-right: 8px;
    transition: background 0.2s ease;
}

.sm-event-btn:hover {
    background: #9a2f3a;
    color: #fff;
}

.sm-event-btn-cancel {
    background: #6b7280;
}

.sm-event-btn-cancel:hover {
    background: #4b5563;
}

.sm-event-btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.sm-event-btn-delete {
    background: #dc2626;
}

.sm-event-btn-delete:hover {
    background: #b91c1c;
}

/* ── Mina events lista ── */
.sm-my-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sm-my-event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.sm-my-event-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sm-my-event-meta {
    font-size: 0.82rem;
    color: #6b7280;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sm-my-event-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Meddelanden ── */
.sm-event-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 10px 14px;
    color: #166534;
    margin-bottom: 1rem;
}

.sm-event-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 10px 14px;
    color: #991b1b;
    margin-bottom: 1rem;
}

.sm-event-notice {
    color: #6b7280;
    font-style: italic;
}

/* ── Mobilanpassning ── */
@media (max-width: 600px) {
    .sm-event-row {
        grid-template-columns: 1fr;
    }
    .sm-my-event-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .sm-event-card {
        flex-direction: column;
    }
}
