/**
 * Church24-7 Members - Main Styles
 * Version: 1.0.0
 */

/* ========================================
   COLORS - Church24-7 Branding
   ======================================== */
:root {
    --c247-black: #000000;
    --c247-red: #B91C1C;
    --c247-dark-gray: #1F1F1F;
    --c247-gray: #6B6B6B;
    --c247-light-gray: #F5F5F5;
    --c247-white: #FFFFFF;
    --c247-border: #E5E5E5;
}

/* ========================================
   FORMS
   ======================================== */
.c247-form {
    max-width: 600px;
    margin: 0 auto;
}

.c247-form input[type="text"],
.c247-form input[type="email"],
.c247-form input[type="password"],
.c247-form input[type="tel"],
.c247-form input[type="date"],
.c247-form textarea,
.c247-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--c247-border);
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.2s;
}

.c247-form input:focus,
.c247-form textarea:focus,
.c247-form select:focus {
    border-color: var(--c247-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.c247-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--c247-dark-gray);
}

.c247-form .required {
    color: var(--c247-red);
}

.c247-form button[type="submit"],
.c247-btn-primary {
    background: var(--c247-red);
    color: var(--c247-white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.c247-form button[type="submit"]:hover,
.c247-btn-primary:hover {
    background: #991B1B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(185, 28, 28, 0.3);
}

/* ========================================
   PROFILE CARDS
   ======================================== */
.c247-profile-card {
    background: var(--c247-white);
    border: 1px solid var(--c247-border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.c247-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.c247-profile-card .profile-avatar img {
    border-radius: 50%;
    border: 3px solid var(--c247-red);
}

.c247-profile-card .profile-name {
    margin: 15px 0 5px;
    font-size: 24px;
    font-weight: 700;
    color: var(--c247-black);
}

.c247-profile-card .profile-role {
    color: var(--c247-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.c247-profile-card .profile-bio {
    margin: 20px 0;
    color: var(--c247-gray);
    line-height: 1.6;
}

/* ========================================
   STATISTICS
   ======================================== */
.c247-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid var(--c247-border);
    border-bottom: 1px solid var(--c247-border);
}

.c247-stat-item {
    text-align: center;
}

.c247-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--c247-red);
}

.c247-stat-label {
    display: block;
    font-size: 12px;
    color: var(--c247-gray);
    text-transform: uppercase;
    margin-top: 5px;
}

/* ========================================
   BADGES
   ======================================== */
.c247-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.c247-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: var(--c247-light-gray);
    border-radius: 8px;
    transition: transform 0.2s;
}

.c247-badge:hover {
    transform: scale(1.05);
    background: var(--c247-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.c247-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--c247-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.c247-badge-name {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--c247-dark-gray);
}

/* ========================================
   MEMBER DIRECTORY
   ======================================== */
.c247-member-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.c247-member-card {
    background: var(--c247-white);
    border: 1px solid var(--c247-border);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.c247-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ========================================
   VIDEO GRID
   ======================================== */
.c247-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.c247-video-card {
    background: var(--c247-white);
    border: 1px solid var(--c247-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.c247-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.c247-video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.c247-video-info {
    padding: 20px;
}

.c247-video-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--c247-dark-gray);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .c247-member-directory,
    .c247-video-grid {
        grid-template-columns: 1fr;
    }
    
    .c247-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .c247-badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.c247-text-center {
    text-align: center;
}

.c247-mt-20 {
    margin-top: 20px;
}

.c247-mb-20 {
    margin-bottom: 20px;
}

.c247-hidden {
    display: none;
}

.c247-loading {
    opacity: 0.5;
    pointer-events: none;
}
