/* ============================================================
   PROFILE DETAIL PAGE
   ============================================================ */

.profile-section {
    background: linear-gradient(135deg, var(--primary) 0%, #8b1a1a 100%);
    padding: 2.5rem 0 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ============================================================
   PROFILE CARD (Top Section)
   ============================================================ */

.profile-card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Left - Photo */
.profile-image {
    position: relative;
    flex-shrink: 0;
}

.profile-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.online {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #27ae60;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.verified i {
    margin-right: 3px;
}

/* Center - Details */
.profile-details {
    flex: 1;
}

.profile-details h1 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-details h4 {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}

.profile-details .status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(255,255,255,0.1);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.profile-details hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 12px 0 14px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.info h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.info p {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Right - Quote Box */
.quote-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 22px;
    max-width: 260px;
    backdrop-filter: blur(4px);
}

.quote-box i {
    font-size: 22px;
    color: var(--secondary);
    opacity: 0.6;
    margin-bottom: 8px;
}

.quote-box p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 14px;
}

.quote-box hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 12px 0;
}

.quote-box h5 {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    margin-bottom: 4px;
}

/* ============================================================
   PROFILE WRAPPER
   ============================================================ */

.profile-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ============================================================
   STICKY TABS
   ============================================================ */

.sticky-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.profile-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 16px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tab-btn i {
    font-size: 13px;
}

.tab-btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    color: var(--primary);
}

/* ============================================================
   TAB CONTENT
   ============================================================ */

.tab-container {
    padding-top: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTENT GRID (About tab - 2 columns)
   ============================================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: flex-start;
}

/* ============================================================
   MAIN CARD
   ============================================================ */

.main-card,
.single-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 28px;
}

.main-card h2,
.single-card h2 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-card h2 i,
.single-card h2 i {
    color: var(--secondary);
    font-size: 20px;
}

/* Info Boxes inside cards */
.info-box {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.info-box span {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-box h4 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

/* About Text */
.about-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f5f5f5;
}

.about-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.about-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
}

.side-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.side-card h3 i {
    color: var(--secondary);
}

.side-card p {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    line-height: 1.5;
}

.side-card h4 {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-top: 6px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.primary-btn:hover {
    background: #a93226;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192,57,43,0.3);
}

.outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.outline-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.match-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(39,174,96,0.3);
}

/* ============================================================
   LIST GRID (Family, Partner)
   ============================================================ */

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.list-grid div {
    padding: 12px 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    font-size: 14px;
    color: #555;
}

.list-grid div strong {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.list-grid .full-width {
    grid-column: 1 / -1;
}

/* ============================================================
   HOROSCOPE
   ============================================================ */

.horoscope-photo {
    text-align: center;
}

.horoscope-photo img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.text-center {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .side-card {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .profile-image {
        justify-self: center;
    }

    .profile-image img {
        width: 140px;
        height: 140px;
    }

    .online {
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-details h1 {
        font-size: 1.4rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quote-box {
        max-width: 100%;
    }

    .tab-btn {
        padding: 14px 14px;
        font-size: 12px;
    }

    .list-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .profile-image img {
        width: 120px;
        height: 120px;
    }

    .profile-details h1 {
        font-size: 1.2rem;
    }

    .main-card,
    .single-card {
        padding: 18px;
    }
}

/* ============================================================
   BADGES & DYNAMIC SIDEBAR
   ============================================================ */

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

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

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

.contact-info {
    text-align: left;
    margin-top: 10px;
}

.contact-info p {
    font-size: 14px;
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p:last-child {
    border-bottom: none;
}

.contact-info p i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.match-circle.high {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.match-circle.medium {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.match-circle.low {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}
