/* ==========================
   Top Artist Voting Portal CSS
   ========================== */

/* ---------- GLOBAL BACKGROUND ---------- */
body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1a1a40 50%, #0f2027 100%) fixed;
    color: #f8f9fa;
}


#wrapwrap > header.navbar,
#wrapwrap > header.o_header_affix {
    position: sticky !important;
    top: 0;
    width: 100%;
    /* z-index: 1030;  */
    background-color: #1e1e2f !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}




/* ---------- CARD STYLING ---------- */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(30, 30, 47, 0.9);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: fadeIn 0.8s ease;
    backdrop-filter: blur(6px);
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
}

/* Card image: unified size and ratio */
.card-img-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-bottom: 3px solid #3b3b6d;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
    filter: brightness(1.15);
}


/* ---------- MODERN CARD TEXT (ARTIST NAME & GENRE) ---------- */
.card-body {
    color: #eee;
    text-align: center;
    padding: 1.2rem;
    position: relative;
}

.card-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(100, 100, 255, 0.3);
}

/* Add animated underline on hover */
.card-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.card:hover .card-title::after {
    width: 80%;
}

/* Subtle genre text */
.card-text {
    color: #aaa;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

/* Optional glowing effect for hovered artist card */
.card:hover .card-title {
    text-shadow: 0 0 15px rgba(80, 150, 255, 0.6);
}


/* ---------- BUTTONS ---------- */
.btn-primary {
    background: linear-gradient(45deg, #4c6ef5, #5f3dc4);
    border: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}
.btn-primary:hover {
    background: linear-gradient(45deg, #5f3dc4, #4c6ef5);
    transform: scale(1.05);
}

.btn-success {
    background: linear-gradient(45deg, #38d9a9, #2f9e44);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-success:hover {
    background: linear-gradient(45deg, #2f9e44, #38d9a9);
    transform: scale(1.05);
}

/* Disabled / secondary buttons */
.btn-secondary,
.btn-outline-secondary {
    border-radius: 8px;
}

/* ---------- HEADINGS ---------- */
h2, h3, h4 {
    color: #fff;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

/* ---------- ALERTS & TABLES ---------- */
.alert {
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.table {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: rgba(255, 255, 255, 0.1);
    color: #ffda79;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =============================
   Artist Profile Page Styling
   ============================= */

/* Profile container */
.artist-profile {
    background: rgba(30, 30, 47, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.8s ease;
}

/* Artist image */
/* Artist image: fixed uniform size */
.artist-profile img {
    width: 100%;
    max-width: 320px;        /* limits size on large screens */
    height: 320px;           /* ensures square frame */
    object-fit: cover;       /* crop intelligently */
    object-position: center; /* center the face */
    border-radius: 15px;
    border: 3px solid #3b3b6d;
    transition: all 0.4s ease;
    background: #000;        /* fallback for missing image */
}

.artist-profile img:hover {
    transform: scale(1.05);
    border-color: #4c6ef5;
    box-shadow: 0 0 15px rgba(76, 110, 245, 0.4);
}


/* Artist name */
.artist-profile h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(100, 100, 255, 0.3);
    margin-top: 0.8rem;
}

/* Info texts (genre, votes) */
.artist-profile p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

/* Section titles */
.artist-profile h4 {
    color: #ffda79;
    font-weight: 600;
    margin-top: 1.4rem;
}

/* Biography */
.artist-profile .bio {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 1rem;
}

/* Buttons area */
.artist-profile .btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
}

/* Adjust spacing */
.artist-profile .mt-3 {
    margin-top: 1.5rem !important;
}

/* Alert messages */
.artist-profile .alert {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(6px);
}


/* ---------- LEADERBOARD AVATARS ---------- */
.artist-avatar {
    width: 55px;
    height: 55px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 2px solid #4c6ef5;
    box-shadow: 0 0 10px rgba(76, 110, 245, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #000;
}

.artist-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(95, 61, 196, 0.6);
}

/* Artist name link */
.artist-link {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.artist-link:hover {
    color: #5f3dc4;
}

/* Table enhancements */
.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.03);
}
.table-striped tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}



/* Responsive */
/* @media (max-width: 768px) {
    .artist-profile {
        text-align: center;
    }
    .artist-profile img {
        width: 90%;
        height: auto;
    }
} */


/* End of custom styles for Top Artist Voting Portal */
