/* Elite Dating Page Specific Styles */
.discover-page {
    background-color: #000;
    color: #fff;
    padding-bottom: 25px;
}

/* Discover Page Base */
.discover-page {
    background-color: #000;
    color: #fff;
    padding-bottom: 25px;
    width: 100%;
    overflow-x: hidden;
}

.main-content {
    padding: 10px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Tab Navigation - Compacted */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 75px;
}

.tab-item svg {
    width: 14px;
    height: 14px;
}

.tab-item span {
    white-space: nowrap;
}

.tab-item.active {
    background: linear-gradient(135deg, #c9a961 0%, #a68b4d 100%);
    color: #000;
    border: none;
}

/* Card Refinement - Compacted */
.dating-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

@media (min-width: 992px) {
    .dating-grid {
        gap: 30px;
        padding: 40px;
    }
    
    .swipe-card-container {
        width: 380px !important;
        margin: 0 !important;
    }
}

.swipe-card-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
}

.swipe-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.35;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Image Wrapper */
.card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: #111;
}

.profile-tap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 2;
}

.profile-tap-overlay .tap-zone {
    height: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.profile-tap-overlay .tap-left { flex: 0 0 30%; }
.profile-tap-overlay .tap-middle { flex: 0 0 40%; }
.profile-tap-overlay .tap-right { flex: 0 0 30%; }

/* Tap Areas - Optimized */
.tap-area {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 50; /* Ensure it's above everything in the card */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.tap-left {
    left: 0;
}

.tap-right {
    right: 0;
}

/* Top Progress Bars */
.card-top-progress-bars {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    z-index: 60;
    pointer-events: none;
}

.progress-bar-segment {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: background 0.3s;
}

.progress-bar-segment.active {
    background: #fff;
}

/* Card Badges & Options */
.card-top-badges {
    position: absolute;
    top: 25px; /* Moved down to accommodate bars */
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 60;
    pointer-events: none;
}

.new-here-badge {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    pointer-events: auto;
    color: #fff;
}

.more-options-btn {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.3s;
}

.more-options-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.more-options-btn svg {
    color: #fff;
}

/* Profile Info Area */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 70px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    z-index: 30;
    pointer-events: none;
}

.profile-main-info, .profile-tags, .card-progress {
    pointer-events: auto;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.1;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.card-progress {
    position: absolute;
    top: 16px;
    right: 15px;
}

.profile-sub-info {
    font-size: 14px;
    color: #ccc;
    margin: 2px 0 10px 0;
}

.interaction-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 5px;
    margin-bottom: 10px;
    gap: 8px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    cursor: pointer;
}

.action-btn:active {
    transform: scale(0.9);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.heart-btn {
    width: 60px;
    height: 60px;
    background: rgba(201, 169, 97, 0.15);
    border: 2px solid #c9a961;
}

.heart-btn svg {
    width: 26px;
    height: 26px;
}

/* Upgrade Banner */
.upgrade-banner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 97, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 97, 0.3);
    flex-shrink: 0;
}

.banner-text {
    flex-grow: 1;
}

.banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.banner-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0 0;
    line-height: 1.3;
}

.upgrade-btn {
    background: linear-gradient(135deg, #c9a961 0%, #a68b4d 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3) !important;
    text-transform: none !important;
}

.upgrade-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
}

.upgrade-btn span {
    font-weight: 800;
}

/* Mobile adjustments to prevent overflow */
@media (max-width: 768px) {
    .discover-page {
        padding-bottom: 25px;
    }
    .main-content {
        padding: 0;
    }
    .swipe-card-container {
        margin: 0 auto 15px;
        max-width: 100%;
    }
    .dating-grid {
        padding: 8px;
        gap: 14px;
    }
    .swipe-card {
        aspect-ratio: 1 / 1.55;
    }
}

@media (max-width: 420px) {
    .info-tag {
        padding: 4px 9px;
        font-size: 10px;
        border-radius: 14px;
        max-width: 62%;
    }
}

#officialCommContent {
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
    max-height: 70vh;
    padding: 16px 18px 110px 18px;
}

/* Tap Areas */
.tap-area {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.tap-left {
    left: 0;
}

.tap-right {
    right: 0;
}

/* Ring Counter */
.progress-ring-container {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
}

.progress-text {
    position: absolute;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    z-index: 2;
}

/* Profile Tags */
.profile-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.profile-tags::-webkit-scrollbar {
    display: none;
}

.info-tag {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    color: #eee;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 0 0 auto;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-tag svg {
    color: #c9a961;
}

.more-tag {
    background: rgba(201, 169, 97, 0.2);
    color: #c9a961;
    font-weight: bold;
}

.verified-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* Footer Menu Styling (The fixed bar) */
.elite-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: env(safe-area-inset-bottom);
}

.elite-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #888;
    flex: 1;
    transition: all 0.3s ease;
    font-size: 10px;
}

.elite-bottom-nav .nav-item.active {
    color: #c9a961;
}

.elite-bottom-nav .nav-icon {
    position: relative;
    margin-bottom: 4px;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #c9a961;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

.central-crown-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a961 0%, #a68b4d 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(201, 169, 97, 0.4);
    border: 4px solid #000;
    margin-top: -35px;
    color: #fff;
}
