/* Upcoming Camps - Frontend Styles */

.ssm-schedule-grid, .ssm-camps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.ssm-schedule-card, .ssm-camp-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ssm-schedule-card:hover, .ssm-camp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.ssm-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.ssm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ssm-card-image.ssm-placeholder {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255,255,255,0.7);
}

.ssm-card-header {
    min-height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ssm-title-letter {
    font-size: 32px;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.ssm-card-header h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
    flex: 1;
    padding-left: 15px;
}

.ssm-card-content {
    padding: 20px;
}

.ssm-card-content h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #2d3748;
    font-weight: 600;
}

.ssm-card-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.ssm-card-content p strong {
    color: #2d3748;
    font-weight: 600;
}

.ssm-register-btn {
    background: #48bb78;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.ssm-register-btn:hover {
    background: #38a169;
    transform: scale(1.02);
}

/* Registration Modal */
.ssm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    animation: ssmFadeIn 0.3s ease;
}

@keyframes ssmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ssm-modal-content {
    background: #ffffff;
    max-width: 560px;
    margin: 40px auto;
    padding: 35px;
    border-radius: 12px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    animation: ssmSlideDown 0.4s ease;
}

@keyframes ssmSlideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ssm-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.3s ease;
    line-height: 1;
}

.ssm-close:hover {
    color: #2d3748;
}

.ssm-modal-content h2 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 24px;
    font-weight: 600;
}

.ssm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ssm-form-group {
    margin-bottom: 15px;
}

.ssm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.ssm-form-group input,
.ssm-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ssm-form-group input:focus,
.ssm-form-group select:focus {
    border-color: #48bb78;
    outline: none;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.ssm-form-group input[readonly] {
    background: #f7fafc;
    cursor: not-allowed;
    color: #4a5568;
}

.ssm-full-width {
    grid-column: 1 / -1;
}

.ssm-submit-btn {
    background: #48bb78;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s ease;
    margin-top: 5px;
}

.ssm-submit-btn:hover {
    background: #38a169;
}

.ssm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ssm-success-message {
    background: #c6f6d5;
    color: #22543d;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.ssm-error-message {
    background: #fed7d7;
    color: #9b2c2c;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

@media (max-width: 768px) {
    .ssm-schedule-grid, .ssm-camps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ssm-modal-content {
        margin: 20px;
        padding: 25px;
    }

    .ssm-form-row {
        grid-template-columns: 1fr;
    }
}
