/* =============================================
   MOVIES TYPE PAGE STYLES
   ============================================= */

/* Theme Variables */
:root {
    --black: #000000;
    --noir: #0a0608;
    --charcoal: #14101a;
    --slate: #1c1624;
    --steel: #2d2438;
    --silver: #9a8fa8;
    --pearl: #f0eaf5;
    --white: #ffffff;
    --ruby: #e31b54;
    --crimson: #c41040;
    --gold: #f5a623;
    --amber: #ffb347;
    --burgundy: #6b1c3a;
    --royal-purple: #4a1259;
    --deep-violet: #2d1b4e;
    --text: var(--pearl);
    --text-muted: rgba(255,255,255,0.6);
    --border: rgba(255,255,255,0.06);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Theme Colors */
[data-theme="ocean"] { --ruby: #0ea5e9; --crimson: #0284c7; --gold: #38bdf8; --amber: #7dd3fc; --burgundy: #0c4a6e; --royal-purple: #075985; }
[data-theme="emerald"] { --ruby: #10b981; --crimson: #059669; --gold: #34d399; --amber: #6ee7b7; --burgundy: #064e3b; --royal-purple: #047857; }
[data-theme="purple"] { --ruby: #a855f7; --crimson: #9333ea; --gold: #c084fc; --amber: #d8b4fe; --burgundy: #4c1d95; --royal-purple: #6b21a8; }
[data-theme="sunset"] { --ruby: #f97316; --crimson: #ea580c; --gold: #fb923c; --amber: #fdba74; --burgundy: #7c2d12; --royal-purple: #9a3412; }
[data-theme="rose"] { --ruby: #ec4899; --crimson: #db2777; --gold: #f472b6; --amber: #f9a8d4; --burgundy: #831843; --royal-purple: #9d174d; }
[data-theme="red"] { --ruby: #ef4444; --crimson: #dc2626; --gold: #f87171; --amber: #fca5a5; --burgundy: #7f1d1d; --royal-purple: #991b1b; }
[data-theme="darkred"] { --ruby: #b91c1c; --crimson: #991b1b; --gold: #dc2626; --amber: #ef4444; --burgundy: #450a0a; --royal-purple: #7f1d1d; }
[data-theme="yellow"] { --ruby: #eab308; --crimson: #ca8a04; --gold: #facc15; --amber: #fde047; --burgundy: #713f12; --royal-purple: #854d0e; }
[data-theme="darkyellow"] { --ruby: #a16207; --crimson: #854d0e; --gold: #ca8a04; --amber: #eab308; --burgundy: #422006; --royal-purple: #713f12; }

/* Page Cover - Full Cover Under Menu (Same as movies.aspx) */
.page-cover {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    padding: 160px 80px 60px;
    margin-top: 0;
    overflow: hidden;
}

.page-cover__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.page-cover__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--noir) 0%, rgba(10, 6, 8, 0.5) 50%, rgba(10, 6, 8, 0.3) 100%),
        linear-gradient(270deg, var(--noir) 0%, transparent 50%);
    z-index: 1;
}

.page-cover__content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-cover__icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-cover__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    box-shadow: 0 10px 40px rgba(227, 27, 84, 0.3);
}

.page-cover__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-cover__subtitle {
    font-size: 1.1rem;
    color: var(--silver);
    max-width: 600px;
    margin: 0;
    text-align: center;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.stat-item__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-radius: 12px;
    font-size: 1.3rem;
    color: var(--white);
}

.stat-item__info {
    text-align: right;
}

.stat-item__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-item__label {
    font-size: 0.85rem;
    color: var(--silver);
}

/* Movies Section */
.movies-section {
    padding: 60px 80px 80px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pearl);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--gold);
}

.section-title span {
    color: var(--ruby);
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
}

/* Movie Card */
.movie-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--charcoal) 0%, var(--noir) 100%);
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
}

.movie-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(227, 27, 84, 0.15);
}

/* Glow Effect */
.movie-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    opacity: 0;
    z-index: -1;
    filter: blur(20px);
    transition: opacity 0.5s ease;
}

.movie-card:hover::after { 
    opacity: 0.25; 
}

.movie-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--ruby), var(--gold), var(--burgundy), var(--ruby));
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    animation: borderGlow 3s linear infinite;
    transition: opacity 0.4s ease;
}

.movie-card:hover::before { 
    opacity: 1; 
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.movie-card__link { 
    display: block; 
}

.movie-card__poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
}

.movie-card:hover .movie-card__img { 
    transform: scale(1); 
    filter: brightness(0.8); 
}

/* Shimmer Effect */
.movie-card__poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    z-index: 2;
    transition: left 0.8s ease;
}

.movie-card:hover .movie-card__poster::before { 
    left: 150%; 
}

.movie-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(10,6,8,0.95) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.movie-card:hover .movie-card__overlay { 
    opacity: 1; 
}

.movie-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    opacity: 0;
    transition: all 0.4s var(--ease-out-back);
    box-shadow: 0 0 50px rgba(227, 27, 84, 0.6);
}

.movie-card:hover .movie-card__play { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
}

/* Rating Badge */
.movie-card__rating {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fff000 0%, #ffaa00 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--black);
    z-index: 5;
    box-shadow: 0 4px 20px rgba(255, 240, 0, 0.4);
}

.movie-card__rating i { 
    font-size: 0.7rem; 
}

/* Views Badge */
.movie-card__views {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pearl);
    z-index: 5;
}

.movie-card__views i { 
    font-size: 0.7rem; 
    color: var(--gold); 
}

/* Runtime Badge */
.movie-card__runtime {
    position: absolute;
    bottom: 80px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--silver);
    z-index: 5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.movie-card:hover .movie-card__runtime {
    opacity: 1;
    transform: translateY(0);
}

.movie-card__runtime i { 
    color: var(--ruby); 
}

/* Language Badge */
.movie-card__lang {
    position: absolute;
    bottom: 80px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(227, 27, 84, 0.2);
    border: 1px solid rgba(227, 27, 84, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pearl);
    z-index: 5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.05s;
}

.movie-card:hover .movie-card__lang {
    opacity: 1;
    transform: translateY(0);
}

.movie-card__lang i { 
    color: var(--gold); 
}

/* Movie Card Info */
.movie-card__info { 
    padding: 18px; 
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4)); 
}

.movie-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pearl);
    text-align: center;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.4s ease;
}

.movie-card:hover .movie-card__title { 
    color: var(--gold); 
    text-shadow: 0 0 20px rgba(245, 166, 35, 0.3); 
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination-wrap a, 
.pagination-wrap span {
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pagination-wrap a:hover {
    background: var(--ruby);
    border-color: var(--ruby);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-wrap .currentpage {
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-color: var(--ruby);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(227, 27, 84, 0.3);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 8, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--ruby);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .page-cover { padding: 120px 40px 50px; }
    .movies-section { padding: 50px 40px 60px; }
}

@media (max-width: 1024px) {
    .page-cover { padding: 120px 24px 40px; }
    .movies-section { padding: 40px 24px 50px; }
    .stats-bar { gap: 20px; }
    .stat-item { padding: 14px 20px; }
}

@media (max-width: 768px) {
    .page-cover__title { font-size: 2rem; }
    .stats-bar { gap: 16px; }
    .stat-item { flex: 1; min-width: 140px; }
    .movies-grid { gap: 20px; }
    .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .page-cover { padding: 100px 16px 30px; min-height: 250px; }
    .page-cover__badge { padding: 10px 18px; font-size: 0.8rem; }
    .page-cover__title { font-size: 1.6rem; }
    .page-cover__icon { font-size: 2rem; }
    .movies-section { padding: 30px 16px 40px; }
    .movies-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .movie-card__rating { padding: 6px 10px; font-size: 0.65rem; }
    .movie-card__views { padding: 6px 10px; font-size: 0.65rem; }
}
