/* ============================================================================
   ASP.NET Core 8 Photography Portal - Modern Commercial Theme
   ============================================================================ */

:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-surface: #0f172a;
    --accent-gold: #f59e0b;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism & Navbar */
.navbar-custom {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #f59e0b 0%, #ec4899 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Banner */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Photography Card Design */
.photo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.6);
}

.photo-card-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid var(--border-color);
}

.photographer-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.photographer-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

/* Image Aspect Ratio & Slider */
.carousel-inner {
    border-radius: 0;
}

.post-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #090d16;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-card:hover .post-image {
    transform: scale(1.03);
}

.category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 10;
}

/* Contact Button Strip */
.contact-btn-group .btn {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Category Filter Pills */
.category-pill {
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover, .category-pill.active {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Search Bar */
.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 12px 6px 20px;
    box-shadow: var(--card-shadow);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    box-shadow: none !important;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* Dashboard Side Navigation */
.dashboard-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.nav-dashboard .nav-link {
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.nav-dashboard .nav-link:hover, .nav-dashboard .nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-cyan);
}

/* Metric Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Modern Form Controls */
.form-control, .form-select {
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    color: #f8fafc;
    border-radius: 10px;
    padding: 10px 14px;
}

.form-control:focus, .form-select:focus {
    background-color: #0f172a;
    border-color: var(--accent-indigo);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

/* ============================================================================
   Lazy Loading & Skeleton Shimmer Effects
   ============================================================================ */

.lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.3s ease;
    will-change: opacity, transform;
}

.lazy-img.loaded {
    opacity: 1;
}

.skeleton-loader {
    position: relative;
    background-color: #1e293b;
    overflow: hidden;
}

.skeleton-loader:not(.is-loaded)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.06) 20%,
        rgba(255, 255, 255, 0.15) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 1.6s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Photo Count Badge */
.badge-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 10;
}

/* 3-4 Images in a Row Thumbnail Strip */
.photo-thumb-strip {
    background: rgba(15, 23, 42, 0.6);
}

.photo-thumb-item {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    height: 48px;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    background-color: #0f172a;
}

.photo-thumb-item:hover {
    border-color: var(--accent-cyan);
    transform: scale(1.04);
}

.photo-thumb-item.active {
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.photo-thumb-item .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    backdrop-filter: blur(2px);
    transition: background 0.2s ease;
}

.thumb-more-overlay:hover {
    background: rgba(99, 102, 241, 0.9);
    color: #fff;
}

/* ============================================================================
   Sticky Floating Contact Buttons (WhatsApp & Telegram)
   ============================================================================ */

.sticky-contact-sidebar {
    position: fixed;
    bottom: 28px;
    right: 24px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.sticky-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    min-width: 52px;
    padding: 0 16px 0 14px;
    border-radius: 50px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
}

.sticky-contact-btn i {
    font-size: 1.55rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sticky-contact-btn .contact-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.25s ease;
}

.sticky-contact-btn:hover {
    transform: translateY(-4px) scale(1.05);
    padding: 0 20px 0 16px;
}

.sticky-contact-btn:hover .contact-label {
    max-width: 120px;
    opacity: 1;
}

/* WhatsApp Styling */
.sticky-contact-btn.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-contact-btn.btn-whatsapp:hover {
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Telegram Styling */
.sticky-contact-btn.btn-telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
    box-shadow: 0 8px 20px rgba(42, 171, 238, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Phone Call Styling */
.sticky-contact-btn.btn-phone {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4), 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sticky-contact-btn.btn-phone:hover {
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer & Social Icons */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    transition: all 0.25s ease;
    text-decoration: none;
}

.footer-social-btn:hover {
    background: var(--accent-gold);
    color: #0f172a;
    transform: translateY(-2px);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .sticky-contact-sidebar {
        bottom: 20px;
        right: 16px;
        gap: 10px;
    }
    .sticky-contact-btn {
        height: 46px;
        min-width: 46px;
        padding: 0 12px;
    }
    .sticky-contact-btn i {
        font-size: 1.35rem;
    }
}