/* ============================================
   TEAM CSS - Complete Styling for Team System
   Version: 3.0
   Pages: team.php, members.php, member.php, team_admin.php
   ============================================ */

/* ============================================
   TEAM REDIRECT SECTION (on team.php)
   ============================================ */
.team-redirect-section {
    width: 100%;
    min-height: 25pc;
    background-color: #f4f5fb;
    box-shadow: 0 -4px 6px rgba(40, 43, 58, 0.2), 0 4px 6px rgba(40, 43, 58, 0.2);
    margin-bottom: 7pc;
    position: relative;
    padding: 60px 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-redirect-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='10' cy='10' r='2' fill='%23004217'/%3E%3Ccircle cx='30' cy='10' r='2' fill='%23004217'/%3E%3Ccircle cx='50' cy='10' r='2' fill='%23004217'/%3E%3Ccircle cx='10' cy='30' r='2' fill='%23004217'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%23004217'/%3E%3Ccircle cx='50' cy='30' r='2' fill='%23004217'/%3E%3Ccircle cx='10' cy='50' r='2' fill='%23004217'/%3E%3Ccircle cx='30' cy='50' r='2' fill='%23004217'/%3E%3Ccircle cx='50' cy='50' r='2' fill='%23004217'/%3E%3Cpath d='M10 10h20M30 10v20M30 30h20M10 30v20M10 50h20' stroke='%23004217' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.team-redirect-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.team-redirect-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #004217 0%, #006625 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #d5b86d;
    box-shadow: 0 4px 20px rgba(0, 66, 23, 0.3);
}

.team-redirect-title {
    font-size: 2.5em;
    color: #000;
    margin-bottom: 15px;
    font-weight: 700;
}

.team-redirect-title span {
    border-bottom: 3px solid #282b3a;
    border-bottom-left-radius: 8px;
}

.team-redirect-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.team-redirect-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.team-redirect-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #004217;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.team-redirect-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #004217 0%, #006625 100%);
    color: #d5b86d;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 66, 23, 0.3);
}

.team-redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 66, 23, 0.4);
    gap: 15px;
}

/* ============================================
   MEMBERS PAGE (members.php)
   ============================================ */
.members-page-hero {
    width: 100%;
    background: linear-gradient(135deg, #004217 0%, #006625 50%, #004217 100%);
    padding: 60px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.members-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='10' cy='10' r='3' fill='%23fff'/%3E%3Ccircle cx='40' cy='10' r='3' fill='%23fff'/%3E%3Ccircle cx='70' cy='10' r='3' fill='%23fff'/%3E%3Ccircle cx='10' cy='40' r='3' fill='%23fff'/%3E%3Ccircle cx='40' cy='40' r='3' fill='%23fff'/%3E%3Ccircle cx='70' cy='40' r='3' fill='%23fff'/%3E%3Ccircle cx='10' cy='70' r='3' fill='%23fff'/%3E%3Ccircle cx='40' cy='70' r='3' fill='%23fff'/%3E%3Ccircle cx='70' cy='70' r='3' fill='%23fff'/%3E%3Cpath d='M10 10h30M40 10v30M40 40h30M10 40v30M10 70h30' stroke='%23fff' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.members-hero-content {
    position: relative;
    z-index: 1;
}

.members-hero-content h1 {
    font-size: 2.8em;
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px;
}

.members-hero-content h1 span {
    color: #d5b86d;
}

.members-hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 20px;
}

.members-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d5b86d;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.members-back-link:hover {
    color: #fff;
    gap: 12px;
}

/* Members Grid */
.members-page-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px 80px;
}

.members-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.members-page-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.members-page-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 66, 23, 0.15);
}

.mpc-photo-wrapper {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #e8e8e8;
}

.mpc-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.members-page-card:hover .mpc-photo-wrapper img {
    transform: scale(1.05);
}

.mpc-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #004217, #1B8A42);
    color: rgba(255, 255, 255, 0.3);
    font-size: 80px;
}

.mpc-gold-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #d5b86d;
}

.mpc-info {
    padding: 20px 22px 10px;
    flex: 1;
}

.mpc-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #004217;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpc-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.mpc-footer {
    padding: 15px 22px;
    border-top: 1px solid #f0f0f0;
}

.mpc-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #004217;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.members-page-card:hover .mpc-view-btn {
    color: #d5b86d;
    gap: 12px;
}

.members-page-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.members-page-empty i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.members-page-empty h3 {
    font-size: 22px;
    color: #555;
    margin-bottom: 10px;
}

.members-page-empty p {
    font-size: 15px;
}

/* ============================================
   MEMBER PROFILE PAGE (member.php)
   Design: Green header with two small accent
   squares (green+gold) at top-right. Gold strip
   runs alongside photo on the right and extends
   to the bottom of the card.
   ============================================ */
.mp-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.mp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d5b86d;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.mp-back:hover {
    color: #004217;
    gap: 12px;
}

/* The Card Container */
.mp-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
    position: relative;
    border: 1px solid #e0e0e0;
}

/* Transparent logo watermark centered in the card */
.mp-logo-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-logo-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.06;
    filter: grayscale(30%);
}

/* Gold strip that runs from below header to card bottom, positioned on the right */
.mp-card::after {
    content: '';
    position: absolute;
    top: 0px; /* starts at the bottom of the header */
    right: 75px;
    bottom: 0;
    width: 40px;
    background: #d5b86d;
    z-index: 0;
    border-radius: 0 0 0 0;
}
/* Circuit board pattern - bottom left corner */
.mp-circuit {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 220px;
    height: 220px;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath d='M20 20h180v180H20z' fill='none' stroke='%23004217' stroke-width='0.8'/%3E%3Ccircle cx='20' cy='20' r='4' fill='%23004217'/%3E%3Ccircle cx='55' cy='20' r='4' fill='%23004217'/%3E%3Ccircle cx='90' cy='20' r='4' fill='%23004217'/%3E%3Ccircle cx='125' cy='20' r='4' fill='%23004217'/%3E%3Ccircle cx='160' cy='20' r='4' fill='%23004217'/%3E%3Ccircle cx='195' cy='20' r='4' fill='%23004217'/%3E%3Ccircle cx='20' cy='55' r='4' fill='%23004217'/%3E%3Ccircle cx='55' cy='55' r='4' fill='%23004217'/%3E%3Ccircle cx='90' cy='55' r='4' fill='%23004217'/%3E%3Ccircle cx='125' cy='55' r='4' fill='%23004217'/%3E%3Ccircle cx='160' cy='55' r='4' fill='%23004217'/%3E%3Ccircle cx='195' cy='55' r='4' fill='%23004217'/%3E%3Ccircle cx='20' cy='90' r='4' fill='%23004217'/%3E%3Ccircle cx='55' cy='90' r='4' fill='%23004217'/%3E%3Ccircle cx='90' cy='90' r='4' fill='%23004217'/%3E%3Ccircle cx='125' cy='90' r='4' fill='%23004217'/%3E%3Ccircle cx='160' cy='90' r='4' fill='%23004217'/%3E%3Ccircle cx='195' cy='90' r='4' fill='%23004217'/%3E%3Ccircle cx='20' cy='125' r='4' fill='%23004217'/%3E%3Ccircle cx='55' cy='125' r='4' fill='%23004217'/%3E%3Ccircle cx='90' cy='125' r='4' fill='%23004217'/%3E%3Ccircle cx='125' cy='125' r='4' fill='%23004217'/%3E%3Ccircle cx='160' cy='125' r='4' fill='%23004217'/%3E%3Ccircle cx='195' cy='125' r='4' fill='%23004217'/%3E%3Ccircle cx='20' cy='160' r='4' fill='%23004217'/%3E%3Ccircle cx='55' cy='160' r='4' fill='%23004217'/%3E%3Ccircle cx='90' cy='160' r='4' fill='%23004217'/%3E%3Ccircle cx='125' cy='160' r='4' fill='%23004217'/%3E%3Ccircle cx='160' cy='160' r='4' fill='%23004217'/%3E%3Ccircle cx='195' cy='160' r='4' fill='%23004217'/%3E%3Ccircle cx='20' cy='195' r='4' fill='%23004217'/%3E%3Ccircle cx='55' cy='195' r='4' fill='%23004217'/%3E%3Ccircle cx='90' cy='195' r='4' fill='%23004217'/%3E%3Ccircle cx='125' cy='195' r='4' fill='%23004217'/%3E%3Ccircle cx='160' cy='195' r='4' fill='%23004217'/%3E%3Ccircle cx='195' cy='195' r='4' fill='%23004217'/%3E%3Cpath d='M20 20h35M55 20v35M55 55h35M90 55v35M90 90h35M125 90v-35M125 55h35M160 55v35M160 90h35M20 55h35M20 90h35M55 90v35M55 125h35M90 125v35M90 160h35M125 160v35M125 195h35M160 125h35M195 55v35M195 90v35M195 125v35M20 125h35M20 160h35M55 160v35M20 195h35' stroke='%23004217' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
}

/* Green Header */
.mp-header {
    background: linear-gradient(135deg, #004217 0%, #006625 100%);
    padding: 18px 30px;
    padding-right: 80px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 65px;
}

.mp-name {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    flex: 1;
    z-index: 1;
}

/* Two small accent SQUARES at top-right of header only */
.mp-header-accents {
    position: absolute;
    right: 10px;
    top: 8px;
    display: flex;
    gap: 5px;
    z-index: 6;
}

.mp-accent-green {
    width: 20px;
    height: 48px;
    background: #004217;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
}

.mp-accent-gold {
    width: 20px;
    height: 48px;
    background: #d5b86d;
    border-radius: 2px;
}

/* Body area */
.mp-body {
    padding: 20px 30px 35px 30px;
    position: relative;
    z-index: 1;
    min-height: 300px;
}

/* Photo column - positioned to sit right next to the gold bar */
.mp-photo-column {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    margin-right: -31px; /* pull photo right to sit next to the gold bar (24px bar + some overlap) */
    position: relative;
    z-index: 4;
}

.mp-photo {
    width: 180px;
    height: 230px;
    overflow: hidden;
    border: none;
    border-radius: 0;
    flex-shrink: 0;
}

.mp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    right: 40px;
}

/* Gold strip: sits to the right of the photo - visual only, 
   the real extending strip is on .mp-card::after */
.mp-gold-strip {
    display: none; /* Hidden because we use the card-level ::after instead */
}

/* Photo placeholder when no photo */
.mp-photo-placeholder {
    width: 180px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    border: none;
    border-radius: 0;
    flex-shrink: 0;
}

.mp-photo-placeholder i {
    font-size: 60px;
    color: #bbb;
}

/* Text content sections */
.mp-text-content {
    position: relative;
    z-index: 1;
}

.mp-section {
    margin-bottom: 14px;
}

.mp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 3px;
    line-height: 1.3;
}

.mp-text {
    font-size: 14.5px;
    color: #333;
    line-height: 1.65;
    margin: 0;
}

.mp-italic {
    font-style: italic;
    color: #444;
}

.mp-item {
    font-size: 14.5px;
    color: #333;
    line-height: 1.65;
    margin: 2px 0;
}

.mp-item strong {
    color: #000;
    font-weight: 700;
}

/* ============================================
   TEAM ADMIN PANEL
   ============================================ */
.team-admin-login {
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.admin-login-box {
    background: #f4f5fb;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid #d5b86d;
}

.admin-login-box h2 {
    text-align: center;
    color: #004217;
    margin-bottom: 25px;
    font-size: 24px;
}

.admin-login-box h2 i {
    margin-right: 10px;
}

.team-admin-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    margin-top: 20px;
}

.team-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.team-admin-header h1 {
    color: #004217;
    font-size: 28px;
}

.team-admin-header h1 i {
    margin-right: 10px;
    color: #d5b86d;
}

.team-admin-actions {
    display: flex;
    gap: 10px;
}

/* Admin Cards */
.admin-card {
    background: #f4f5fb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-card h2 {
    color: #004217;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d5b86d;
}

.admin-card h2 i {
    margin-right: 8px;
    color: #d5b86d;
}

/* Admin Forms */
.admin-form-group {
    margin-bottom: 18px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="number"],
.admin-form-group input[type="password"],
.admin-form-group input[type="file"],
.admin-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background: white;
}

.admin-form-group input:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: #004217;
}

.admin-form-group small {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

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

.admin-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.admin-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #004217;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.admin-current-photo {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-current-photo img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.admin-current-photo span {
    font-size: 12px;
    color: #888;
}

/* Admin Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.admin-btn-primary {
    background: #004217;
    color: white;
}

.admin-btn-primary:hover {
    background: #006625;
}

.admin-btn-outline {
    background: transparent;
    color: #004217;
    border: 2px solid #004217;
}

.admin-btn-outline:hover {
    background: #004217;
    color: white;
}

.admin-btn-danger {
    background: #dc3545;
    color: white;
}

.admin-btn-danger:hover {
    background: #c82333;
}

/* Admin Table */
.admin-members-table {
    overflow-x: auto;
}

.admin-members-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-members-table th {
    background: #004217;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.admin-members-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    vertical-align: middle;
}

.admin-members-table tr:hover {
    background: rgba(0, 66, 23, 0.05);
}

.inactive-row {
    opacity: 0.5;
}

.admin-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.admin-thumb-placeholder {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 8px;
    color: #999;
    font-size: 18px;
}

.admin-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.admin-actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.admin-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.admin-btn-view { background: #17a2b8; color: white; }
.admin-btn-view:hover { background: #138496; }
.admin-btn-edit { background: #d5b86d; color: #333; }
.admin-btn-edit:hover { background: #c5a85d; }
.admin-btn-toggle { background: #6c757d; color: white; }
.admin-btn-toggle:hover { background: #5a6268; }
.admin-btn-delete { background: #dc3545; color: white; }
.admin-btn-delete:hover { background: #c82333; }

.admin-empty {
    text-align: center;
    color: #888;
    padding: 30px;
    font-size: 16px;
}

/* Admin Alerts */
.admin-alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.admin-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   RESPONSIVE - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .mp-wrapper {
        max-width: 95%;
        padding: 15px;
    }
    
    .mp-logo-watermark {
        width: 240px;
        height: 240px;
    }
    
    .members-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .team-redirect-section {
        padding: 50px 25px;
    }
}

/* ============================================
   RESPONSIVE - Mobile Landscape / Small Tablet (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    .members-page-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .members-page-grid-wrapper {
        padding: 30px 20px 60px;
    }
    
    .members-hero-content h1 {
        font-size: 2em;
    }
    
    .members-page-hero {
        padding: 40px 20px;
    }
    
    .mp-wrapper {
        max-width: 100%;
        padding: 10px;
    }
    
    .mp-name {
        font-size: 18px;
        letter-spacing: 0.5px;
    }
    
    .mp-header {
        padding: 15px 20px;
        padding-right: 60px;
    }
    
    .mp-photo-column {
        float: none;
        display: flex;
        justify-content: center;
        margin: 0 auto 20px;
        margin-right: 0;
    }
    
    .mp-photo {
        width: 160px;
        height: 200px;
    }
    
    .mp-photo img {
        position: relative;
        right: auto;
    }
    
    .mp-photo-placeholder {
        width: 160px;
        height: 200px;
    }
    
    /* Hide the full-height gold bar on mobile, show inline instead */
    .mp-card::after {
        display: none;
    }
    
    .mp-gold-strip {
        display: block;
        width: 30px;
        min-height: 200px;
        background: #d5b86d;
        flex-shrink: 0;
    }
    
    .mp-body {
        padding: 20px;
    }
    
    .mp-header-accents {
        right: 8px;
        top: 6px;
    }
    
    .mp-accent-green,
    .mp-accent-gold {
        width: 16px;
        height: 38px;
    }
    
    .mp-logo-watermark {
        width: 200px;
        height: 200px;
    }
    
    .mp-circuit {
        width: 150px;
        height: 150px;
    }
    
    .admin-form-row {
        grid-template-columns: 1fr;
    }
    
    .team-admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .team-admin-actions {
        flex-wrap: wrap;
    }
    
    .admin-actions-cell {
        flex-wrap: wrap;
    }
    
    .team-redirect-title {
        font-size: 1.8em;
    }
    
    .team-redirect-section {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .team-redirect-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .mp-wrapper {
        padding: 8px;
    }
    
    .mp-name {
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    
    .mp-header {
        padding: 12px 15px;
        padding-right: 50px;
        min-height: 50px;
    }
    
    .mp-photo {
        width: 130px;
        height: 170px;
    }
    
    .mp-photo-placeholder {
        width: 130px;
        height: 170px;
    }
    
    .mp-gold-strip {
        width: 22px;
        min-height: 170px;
    }
    
    .mp-body {
        padding: 15px;
    }
    
    .mp-header-accents {
        right: 6px;
        top: 5px;
        gap: 3px;
    }
    
    .mp-accent-green,
    .mp-accent-gold {
        width: 12px;
        height: 32px;
    }
    
    .mp-section-title {
        font-size: 14px;
    }
    
    .mp-text, .mp-item {
        font-size: 13px;
    }
    
    .mp-logo-watermark {
        width: 160px;
        height: 160px;
    }
    
    .mp-circuit {
        width: 120px;
        height: 120px;
    }
    
    .team-redirect-title {
        font-size: 1.5em;
    }
    
    .team-redirect-desc {
        font-size: 13px;
    }
    
    .team-redirect-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .members-hero-content h1 {
        font-size: 1.6em;
    }
    
    .members-hero-content p {
        font-size: 14px;
    }
    
    .mpc-photo-wrapper {
        height: 220px;
    }
    
    .admin-card {
        padding: 20px 15px;
    }
    
    .admin-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .team-admin-container {
        padding: 20px 10px;
    }
}

/* ============================================
   RESPONSIVE - Very Small Mobile (max-width: 360px)
   ============================================ */
@media (max-width: 360px) {
    .mp-name {
        font-size: 12px;
    }
    
    .mp-header {
        padding: 10px 12px;
        padding-right: 45px;
    }
    
    .mp-photo {
        width: 110px;
        height: 145px;
    }
    
    .mp-photo-placeholder {
        width: 110px;
        height: 145px;
    }
    
    .mp-gold-strip {
        width: 18px;
        min-height: 145px;
    }
    
    .mp-accent-green,
    .mp-accent-gold {
        width: 10px;
        height: 28px;
    }
    
    .mp-logo-watermark {
        width: 130px;
        height: 130px;
    }
    
    .mp-section {
        margin-bottom: 10px;
    }
    
    .mp-text, .mp-item {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .mp-section-title {
        font-size: 13px;
    }
}
