/* Profile Page Redesign CSS */

.body-profile-redesign {
    background-color: #0B0E14;
    /* Deep dark background */
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    margin: 0;
    padding-bottom: 80px;
    /* Space for bottom nav */
}

/* Header */
.header-profile-redesign {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #0B0E14;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* Takes up available space to center itself */
}

.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: none;
    /* Hide text as requested */
}

/* Generic Icon Button for Profile Header */
.icon-btn-profile {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn-profile:active {
    background: #1A1F2B;
}

/* Main Content */
.main-content-profile-redesign {
    padding: 1rem 1.5rem;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 1.5rem;
}

.welcome-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
}

.highlight-text {
    color: #3B82F6;
    /* Fallback */
    background: linear-gradient(90deg, #3B82F6, #06B6D4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
    color: #9CA3AF;
    font-size: 0.9rem;
    margin: 0;
}

/* ID Card */
.id-card-gradient {
    background: linear-gradient(135deg, #7C3AED 0%, #3B82F6 100%);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

/* Subtle circle overlay for depth */
.id-card-gradient::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.id-card-content {
    z-index: 1;
}

.id-label {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.id-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.id-hint {
    font-size: 0.75rem;
    opacity: 0.8;
    margin: 0;
    font-style: italic;
}

.copy-uid-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
    margin-left: 1rem;
    z-index: 1;
}

/* Stats Row */
.stats-row-redesign {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card-redesign {
    flex: 1;
    background: #151923;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label-r {
    display: block;
    font-size: 0.7rem;
    color: #6B7280;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-value-r {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F59E0B;
    /* Default Yellow/Orange */
}

.stat-value-r.green-text {
    color: #10B981;
}

.stat-value-r.blue-text {
    color: #3B82F6;
}

/* Info Cards */
.info-card-redesign {
    background: #151923;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    /* content wrap for mobile */
}

.info-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-circle.purple {
    background: rgba(124, 58, 237, 0.15);
    color: #8B5CF6;
}

.info-icon-circle.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.info-text-group {
    flex: 1;
    min-width: 0;
    /* truncate fix */
}

.info-label-r {
    display: block;
    font-size: 0.7rem;
    color: #6B7280;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-value-r {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    word-break: break-all;
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.verified-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
}

.info-subtext {
    width: 100%;
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 0.5rem;
    font-style: italic;
    padding-left: calc(48px + 1rem);
    /* Align with text */
}

/* Registered Events */
.section-header-redesign {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.section-title-r {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
}

.view-all-link {
    color: #F59E0B;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    /* Space for scrollbar if any */
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Event Card (Horizontal) */
.event-card-new {
    min-width: 280px;
    background: #151923;
    /* fallback */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-card-bg {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, #151923 10%, transparent);
}

.event-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F59E0B;
    color: black;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.event-status-pill {
    display: inline-block;
    background: #7C3AED;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}


.event-card-details {
    padding: 1rem;
    background: #151923;
}

.event-title-new {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.event-meta-row {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #9CA3AF;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-card-placeholder {
    color: #6B7280;
    font-style: italic;
    font-size: 0.9rem;
}

/* Logout Button (Bottom) */
.btn-logout-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    /* Subtle Red */
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.btn-logout-bottom:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
}

/* Verified Partner Badge */
.partner-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #4ADE80;
    /* Bright Green */
    background: #000000;
    /* Solid Black */
    border: 1px solid #4ADE80;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* Winner Badges */
.winner-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.winner-badge.gold {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.winner-badge.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    border: 1px solid rgba(192, 192, 192, 0.4);
}

.winner-badge.bronze {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    border: 1px solid rgba(205, 127, 50, 0.4);
}

.status-ongoing {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #22C55E !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}