/*
Theme Name: ResSoft Divi Child
Description: Child theme for ResSoft airsoft reservist site - Divi 5 compatible
Author: ResSoft Development Team
Template: Divi
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../Divi/style.css");

/* Custom ResSoft Styles */

/* Military-themed color scheme */
:root {
    --ressoft-primary: #4d5421;
    --ressoft-secondary: #3d8b40;
    --ressoft-light: #ede6d4;
    --ressoft-text: #333;
    --ressoft-border: #eee;
}

/* Tapahtuma Single Event Styling */
.tapahtuma-single-content {
    margin: 0 auto;
    width: 100%;
}

.tapahtuma-info-section {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid var(--ressoft-border);
}

.tapahtuma-info-section:last-child {
    border-bottom: none;
}

.tapahtuma-info-section h3 {
    margin-bottom: 0.5em;
    color: var(--ressoft-text);
    font-weight: bold;
}

.tapahtuma-info-content {
    line-height: 1.6;
}

.tapahtuma-map-link {
    margin-top: 1em;
}

.tapahtuma-map-button {
    display: inline-block;
    padding: 0.5em 1em;
    background-color: var(--ressoft-primary);
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tapahtuma-map-button:hover {
    background-color: var(--ressoft-secondary);
}

.tapahtuma-group-info {
    margin-top: 2em;
    font-style: italic;
    color: #666;
}

/* Enhanced Events Table Styling */
.enhanced-tapahtumat-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.enhanced-tapahtumat-table th {
    text-align: left;
    color: var(--ressoft-light);
    padding: 8px;
    border-bottom: 2px solid #ddd;
    background: var(--ressoft-primary);
}

.enhanced-tapahtumat-table tr {
    border-bottom: 1px solid var(--ressoft-border);
}

.enhanced-tapahtumat-table td {
    padding: 8px;
}

.enhanced-tapahtumat-table h5 {
    margin: 0;
}

.enhanced-tapahtumat-table a {
    color: var(--ressoft-primary);
    text-decoration: none;
}

.enhanced-tapahtumat-table a:hover {
    color: var(--ressoft-secondary);
    text-decoration: underline;
}

/* Military-themed button styles */
.ressoft-button,
.ressoft-btn {
    background-color: var(--ressoft-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.ressoft-button:hover,
.ressoft-btn:hover {
    background-color: var(--ressoft-secondary);
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .tapahtuma-info-section {
        margin-bottom: 1em;
        padding-bottom: 1em;
    }
    
    .enhanced-tapahtumat-table th,
    .enhanced-tapahtumat-table td {
        padding: 6px 4px;
        font-size: 0.9em;
    }
}

/* ==================================================
   RESSOFT EVENT REGISTRATION SYSTEM
   ================================================== */

.tapahtuma-registration-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--ressoft-primary);
}

.tapahtuma-registration-section h4 {
    color: var(--ressoft-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.registration-btn {
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.registration-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.registration-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
}

.tapahtuma-admin-stats {
    margin-top: 30px;
    padding: 20px;
    background: #e9ecef;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.tapahtuma-login-notice {
    margin-top: 30px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    text-align: center;
}

.tapahtuma-login-button {
    display: inline-block;
    background: var(--ressoft-primary);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tapahtuma-login-button:hover {
    background: var(--ressoft-secondary);
    transform: translateY(-1px);
}

/* ==================================================
   MEMBER DASHBOARD
   ================================================== */

.ressoft-profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--ressoft-primary);
    margin-bottom: 20px;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ressoft-profile-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--ressoft-primary);
}

.ressoft-profile-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.ressoft-profile-field {
    margin-bottom: 20px;
}

.ressoft-profile-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ressoft-text);
}

.ressoft-profile-field input,
.ressoft-profile-field select,
.ressoft-profile-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.ressoft-profile-field input:focus,
.ressoft-profile-field select:focus,
.ressoft-profile-field textarea:focus {
    outline: none;
    border-color: var(--ressoft-primary);
    box-shadow: 0 0 0 3px rgba(77, 84, 33, 0.1);
}

.ressoft-event-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.ressoft-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.ressoft-event-card h4 {
    margin: 0 0 12px 0;
    color: var(--ressoft-primary);
    font-size: 18px;
    font-weight: 600;
}

.ressoft-event-card h4 a {
    color: var(--ressoft-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ressoft-event-card h4 a:hover {
    color: var(--ressoft-secondary);
}

.ressoft-event-date {
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-size: 14px;
}

.ressoft-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ressoft-status-attending {
    background: var(--ressoft-primary);
    color: white;
}

.ressoft-status-not-attending {
    background: #dc3545;
    color: white;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .registration-btn {
        width: 100%;
        margin-right: 0;
    }
    
    .ressoft-profile-picture {
        width: 100px;
        height: 100px;
    }
    
    .ressoft-profile-info,
    .ressoft-profile-form {
        padding: 20px;
    }
}