/*
File: assets/awards.css (Updated with new styles)
*/

/* Awards Plugin Enhanced Styles */

/* Reset and Base Styles */
.awards-registration-form *,
.awards-login-form *,
.award-registration-form *,
.member-profile-page *,
.password-reset-page *,
.thank-you-page * {
    box-sizing: border-box;
}

/* Form Container Styles */
.awards-registration-form,
.awards-login-form,
.award-registration-form,
.member-profile-page,
.password-reset-page,
.thank-you-page {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.login-required {
    max-width: 500px;
    margin: 30px auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #dee2e6;
}

.login-required h3 {
    color: #495057;
    margin-bottom: 15px;
}

.login-required p {
    color: #6c757d;
    margin-bottom: 25px;
}

/* Form Header */
.form-header,
.profile-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.form-header h2,
.profile-header h2 {
    color: #1a202c;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p,
.profile-header p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

/* Profile Page Styles */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.profile-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.profile-section h3 {
    color: #495057;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

/* Submissions List */
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.submission-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.submission-header h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.submission-details {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.submission-details p {
    margin: 5px 0;
}

.admin-notes {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.admin-notes strong {
    color: #004085;
}

.admin-notes p {
    margin: 5px 0 0 0;
    color: #495057;
}

.no-submissions {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-submissions p {
    margin-bottom: 20px;
}

/* Thank You Page */
.thank-you-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 25px;
}

.success-icon .dashicons {
    font-size: 64px;
    color: #28a745;
    width: 64px;
    height: 64px;
}

.thank-you-content h2 {
    color: #28a745;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.thank-you-content p {
    color: #6c757d;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.thank-you-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Styles */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #2d3748;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    transform: translateY(-1px);
}

.form-group input[readonly] {
    background-color: #f7fafc;
    color: #4a5568;
    cursor: not-allowed;
}

.form-group small {
    color: #718096;
    font-size: 13px;
    margin-top: 6px;
    display: block;
    font-style: italic;
}

/* File Input Styles */
.file-input {
    border: 2px dashed #cbd5e0 !important;
    background-color: #f7fafc !important;
    cursor: pointer;
    position: relative;
}

.file-input:hover {
    border-color: #4299e1 !important;
    background-color: #ebf8ff !important;
}

.file-info {
    margin-top: 12px;
    padding: 12px;
    background-color: #edf2f7;
    border-radius: 6px;
    border-left: 4px solid #4299e1;
}

.file-info small {
    color: #4a5568 !important;
    line-height: 1.5;
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background: #004062;
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0);
    text-decoration:none !important;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: #004062;
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0);
    text-decoration:none;
}

.btn-primary:hover {
  background: #762432;
  color: white;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0);
}

.btn-secondary {
        width: 100%;
    padding: 14px 24px;
    background: #004062;
    color: white;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0);
    text-decoration:none;
}

.btn-secondary:hover {
  background: #762432;
  color: white;
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.forgot-password-link {
    color: #4299e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.forgot-password-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Message Styles */
#registration-message,
#login-message,
#award-registration-message,
#profile-message,
#password-message,
#reset-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-registered {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Password Reset Form */
#password-reset-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

#password-reset-form h3 {
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .awards-registration-form,
    .awards-login-form,
    .award-registration-form,
    .member-profile-page,
    .password-reset-page,
    .thank-you-page {
        margin: 20px 15px;
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .form-header h2,
    .profile-header h2 {
        font-size: 24px;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions .btn-primary,
    .thank-you-actions .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .awards-registration-form,
    .awards-login-form,
    .award-registration-form,
    .member-profile-page,
    .password-reset-page,
    .thank-you-page {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .success-icon .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }
    
    .thank-you-content h2 {
        font-size: 24px;
    }
}

/* Loading States */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Animation for form appearance */
.awards-registration-form,
.awards-login-form,
.award-registration-form,
.member-profile-page,
.password-reset-page,
.thank-you-page {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for better accessibility */
.form-group.focused label {
    color: #4299e1;
}

/* Container for centering */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}