/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.dojo-members-public {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Member profile display */
.dojo-member-profile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dojo-member-profile h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.member-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.member-detail {
    margin-bottom: 10px;
}

.member-detail label {
    font-weight: bold;
    color: #666;
    display: inline-block;
    width: 120px;
}

.member-detail span {
    color: #333;
}

/* Belt rank display */
.belt-rank-display {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
}

.belt-rank-display.white { background: #666; }
.belt-rank-display.yellow { background: #ffd700; color: #333; }
.belt-rank-display.orange { background: #ff8c00; }
.belt-rank-display.green { background: #228b22; }
.belt-rank-display.blue { background: #4169e1; }
.belt-rank-display.brown { background: #8b4513; }
.belt-rank-display.black { background: #000; }

/* Member directory */
.dojo-member-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.member-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.member-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.member-card .member-number {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.member-card .join-date {
    font-size: 12px;
    color: #999;
}

/* Training schedule display */
.dojo-training-schedule {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin: 20px 0;
}

.training-day {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.training-day:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.training-day h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
}

.training-session {
    background: white;
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 3px;
    border-left: 3px solid #0073aa;
}

.training-time {
    font-weight: bold;
    color: #333;
}

.training-type {
    color: #666;
    font-size: 14px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .member-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dojo-member-directory {
        grid-template-columns: 1fr;
    }
    
    .member-detail label {
        width: 100%;
        display: block;
        margin-bottom: 5px;
    }
}

/* Forms for public member interaction */
.dojo-member-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

.dojo-member-form .form-group {
    margin-bottom: 20px;
}

.dojo-member-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.dojo-member-form input,
.dojo-member-form select,
.dojo-member-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    font-size: 14px;
}

.dojo-member-form input:focus,
.dojo-member-form select:focus,
.dojo-member-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.dojo-member-form .submit-button {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.dojo-member-form .submit-button:hover {
    background: #005a87;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background: #46b450;
}

.status-inactive {
    background: #dc3232;
}

.status-suspended {
    background: #ffb900;
}