/* =========================================================
   view_club.css - Premium Blue Purple Theme
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Orbs */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06), transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* ===== CLUB DETAIL CARD ===== */
.club-detail-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 50px 45px 35px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    max-width: 580px;
    margin: 0 auto;
    z-index: 1;
}

/* Card Gradient Border Animation */
.club-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Decorative Corner Accents */
.club-detail-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.corner-accent {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== CLUB LOGO ===== */
.club-logo-wrapper {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.club-logo-wrapper .logo-ring {
    display: inline-block;
    position: relative;
    padding: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.2); }
    50% { box-shadow: 0 0 0 15px rgba(102, 126, 234, 0.05); }
}

.club-logo-wrapper img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 18px;
    border: 3px solid rgba(102, 126, 234, 0.15);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
    display: block;
}

.club-logo-wrapper img:hover {
    transform: scale(1.08) rotate(-5deg);
    border-color: #667eea;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.25);
}

/* ===== CLUB BADGE ===== */
.club-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(102, 126, 234, 0.12);
    margin-bottom: 10px;
}

/* ===== CLUB NAME ===== */
.club-name {
    color: #1a1a2e;
    font-weight: 800;
    font-size: 32px;
    text-align: center;
    margin: 8px 0 4px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.club-name .highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.club-name::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin: 10px auto 0;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.club-detail-card:hover .club-name::after {
    width: 80px;
}

/* ===== CLUB DESCRIPTION ===== */
.club-description {
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    margin: 12px 0 25px;
    padding: 0 10px;
    font-weight: 400;
    background: rgba(102, 126, 234, 0.03);
    border-radius: 12px;
    padding: 15px 20px;
    border-left: 3px solid rgba(102, 126, 234, 0.2);
}

/* ===== CLUB DETAILS GRID ===== */
.club-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(102, 126, 234, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.detail-item:hover {
    background: rgba(102, 126, 234, 0.06);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.08);
}

.detail-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 16px;
    transition: all 0.4s ease;
}

.detail-item:hover .detail-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.detail-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

/* ===== ACTION BUTTONS ===== */
.club-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn-club-action {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-club-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-club-action:hover::before {
    left: 100%;
}

.btn-club-action:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.btn-club-action-outline {
    background: transparent;
    color: #667eea;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(102, 126, 234, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-club-action-outline:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

/* ===== BACK BUTTON - BOTTOM ===== */
.btn-back-wrapper {
    text-align: center;
    margin-top: 5px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.btn-back-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(102, 126, 234, 0.06);
    color: #667eea;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.btn-back:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.btn-back i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-4px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .club-detail-card {
        padding: 32px 24px 25px;
        border-radius: 24px;
    }
    
    .club-name {
        font-size: 26px;
    }
    
    .club-description {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .club-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .club-logo-wrapper img {
        width: 100px;
        height: 100px;
        padding: 14px;
    }
    
    .club-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-club-action,
    .btn-club-action-outline {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .btn-back {
        padding: 10px 22px;
        font-size: 13px;
    }
    
    body::before,
    body::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .club-detail-card {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }
    
    .club-name {
        font-size: 22px;
    }
    
    .club-badge {
        font-size: 9px;
        padding: 3px 12px;
    }
    
    .club-description {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .club-logo-wrapper img {
        width: 80px;
        height: 80px;
        padding: 12px;
    }
    
    .club-details {
        gap: 8px;
    }
    
    .detail-item {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .detail-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 14px;
    }
    
    .detail-value {
        font-size: 12px;
    }
    
    .btn-club-action,
    .btn-club-action-outline {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .btn-back {
        padding: 8px 18px;
        font-size: 12px;
    }
}