/* ============================================
   Celebrity Listing Website - Custom Styles
   ============================================ */

/* CSS Variables */
:root {
    --black: #131313;
    --white: #fdfdfd;
    --grey: #1d1d1d;
    --text-secondary: #bbb;
    --border: #3d3d3d;
    --accent-start: #ff6b9d;
    --accent-end: #ffa64d;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* ============================================
   Gradient Utilities
   ============================================ */

.gradient-bg {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary-custom {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: var(--black);
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    color: var(--black);
}

.btn-secondary-custom {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 8px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: var(--grey);
    border-color: var(--accent-start);
    color: var(--white);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    background: rgba(19, 19, 19, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white) !important;
}

.navbar-brand span {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-radius: 2px;
}

.navbar-toggler {
    border: 1px solid var(--border);
    padding: 8px 12px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28253, 253, 253, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Cards
   ============================================ */

.card-custom {
    background: var(--grey);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.card-custom:hover {
    transform: translateY(-8px);
    border-color: var(--accent-start);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-custom .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.card-custom .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-custom:hover .card-image img {
    transform: scale(1.05);
}

.card-custom .card-content {
    padding: 20px;
}

.card-custom .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.card-custom .card-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* News Card */
.news-card .card-image {
    aspect-ratio: 16/9;
}

.news-card .card-content {
    padding: 24px;
}

.news-card .news-date {
    font-size: 0.75rem;
    color: var(--accent-start);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.news-card .card-title {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.news-card .card-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ============================================
   Badges
   ============================================ */

.badge-custom {
    background: rgba(255, 107, 157, 0.15);
    color: var(--accent-start);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-featured {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: var(--black);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 107, 157, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 166, 77, 0.2));
    mix-blend-mode: overlay;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating animation for hero image */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   Section Styles
   ============================================ */

.section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.view-all-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--accent-start);
}

/* ============================================
   Categories Section
   ============================================ */

.category-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: var(--grey);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    border-color: var(--accent-start);
    color: var(--accent-start);
    transform: scale(1.05);
}

.category-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.category-item:hover .category-name {
    color: var(--white);
}

/* ============================================
   Newsletter Section
   ============================================ */

.newsletter-section {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 166, 77, 0.1));
    padding: 80px 0;
    text-align: center;
}

.newsletter-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.newsletter-form .form-control {
    flex: 1;
    background: var(--grey);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    color: var(--white);
}

.newsletter-form .form-control::placeholder {
    color: var(--text-secondary);
}

.newsletter-form .form-control:focus {
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
    background: var(--grey);
    color: var(--white);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #0a0a0a;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo span {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: var(--black);
    transform: scale(1.1);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-start);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ============================================
   Listing Page Styles
   ============================================ */

.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(180deg, rgba(255, 107, 157, 0.05), transparent);
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
}

.filter-sidebar {
    background: var(--grey);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    background-color: var(--grey);
    border-color: var(--border);
}

.form-check-input:checked {
    background-color: var(--accent-start);
    border-color: var(--accent-start);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.search-bar {
    background: var(--grey);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--white);
    flex: 1;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
}

.sort-dropdown .dropdown-toggle {
    background: var(--grey);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: 8px;
    padding: 10px 20px;
}

.sort-dropdown .dropdown-toggle:hover,
.sort-dropdown .dropdown-toggle:focus {
    background: var(--grey);
    border-color: var(--accent-start);
    color: var(--white);
}

.sort-dropdown .dropdown-menu {
    background: var(--grey);
    border: 1px solid var(--border);
}

.sort-dropdown .dropdown-item {
    color: var(--text-secondary);
}

.sort-dropdown .dropdown-item:hover {
    background: var(--border);
    color: var(--white);
}

/* ============================================
   Celebrity Detail Page
   ============================================ */

.profile-header {
    padding: 120px 0 60px;
    position: relative;
}

.profile-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.profile-image-main img {
    width: 100%;
    height: auto;
}

.profile-info {
    padding-left: 40px;
}

.profile-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.profile-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: 16px;
}

.profile-tabs {
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}

.profile-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 16px 24px !important;
    font-weight: 500;
    position: relative;
}

.profile-tabs .nav-link.active {
    color: var(--white);
    background: transparent;
}

.profile-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   Contact Page
   ============================================ */

.contact-info-card {
    background: var(--grey);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: var(--accent-start);
}

.contact-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 166, 77, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent-start);
}

.contact-info-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-info-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-form {
    background: var(--grey);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
}

.form-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control-custom {
    background: var(--black);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--white);
    width: 100%;
    transition: all 0.3s ease;
}

.form-control-custom::placeholder {
    color: var(--text-secondary);
}

.form-control-custom:focus {
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2);
    outline: none;
    background: var(--black);
    color: var(--white);
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   Star Rating
   ============================================ */

.star-rating {
    display: flex;
    gap: 4px;
    color: var(--accent-end);
}

.star-rating .bi-star-fill,
.star-rating .bi-star-half,
.star-rating .bi-star {
    font-size: 0.875rem;
}

/* ============================================
   Pagination
   ============================================ */

.pagination-custom .page-link {
    background: var(--grey);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background: var(--border);
    color: var(--white);
    border-color: var(--border);
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-color: transparent;
    color: var(--black);
    font-weight: 600;
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--grey);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-start);
    color: var(--black);
}

/* ============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 991px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 48px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .profile-info {
        padding-left: 0;
        margin-top: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 32px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-stats {
        gap: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .contact-form {
        padding: 24px;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-image {
        animation: none;
    }
}