/* web/css/aesthetic.css */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --primary-soft: #ede9fe;
    --accent: #f472b6;
    --accent-dark: #ec4899;
    --dark: #0f0f17;
    --dark-card: #1a1a2e;
    --dark-soft: #2d2d44;
    --text: #ffffff;
    --text-soft: #a0a0c0;
    --text-muted: #6b6b8b;
    --glass-bg: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f17 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: var(--text);
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-bg .gradient {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 30% 50%, rgba(167, 139, 250, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 50%);
    animation: gradientMove 30s ease infinite;
}

.animated-bg .particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(167, 139, 250, 0.2)"/><circle cx="20" cy="30" r="1" fill="rgba(244, 114, 182, 0.2)"/><circle cx="80" cy="70" r="1" fill="rgba(167, 139, 250, 0.2)"/><circle cx="40" cy="80" r="1" fill="rgba(244, 114, 182, 0.2)"/><circle cx="90" cy="20" r="1" fill="rgba(167, 139, 250, 0.2)"/></svg>');
    animation: particleMove 60s linear infinite;
    opacity: 0.5;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(5deg); }
}

@keyframes particleMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.glass-card {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 139, 250, 0.3);
    box-shadow: 0 20px 40px -15px rgba(167, 139, 250, 0.3);
}

/* Navbar */
.navbar-aesthetic {
    background: rgba(15, 15, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-soft) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 100px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text) !important;
    background: rgba(167, 139, 250, 0.1);
}

.nav-link.active {
    color: var(--text) !important;
    background: rgba(167, 139, 250, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(167, 139, 250, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: float 3s ease infinite;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-soft);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

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

/* Search Bar */
.search-wrapper {
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    padding-right: 4rem;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 60px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

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

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(167, 139, 250, 0.5);
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
}

.section-title-center {
    text-align: center;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Anime Card - Aesthetic */
.anime-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--dark-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    height: 100%;
}

.anime-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(167, 139, 250, 0.4);
}

.anime-card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.anime-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.anime-card:hover .anime-card-image img {
    transform: scale(1.1);
}

.anime-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 15, 23, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.anime-card:hover .anime-card-overlay {
    opacity: 1;
}

.anime-card-content {
    padding: 1.2rem;
    background: var(--dark-card);
}

.anime-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: white;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.anime-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(167, 139, 250, 0.3);
    backdrop-filter: blur(4px);
}

.anime-card-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.3);
}

.anime-card-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.anime-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.anime-card:hover .anime-card-play {
    opacity: 1;
    transform: scale(1);
}

.anime-card-play i {
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Buttons */
.btn-aesthetic {
    padding: 0.8rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-aesthetic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-aesthetic:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-aesthetic {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 20px -5px rgba(167, 139, 250, 0.3);
}

.btn-outline-aesthetic {
    background: transparent;
    border: 2px solid rgba(167, 139, 250, 0.5);
    color: var(--primary);
}

.btn-outline-aesthetic:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Pagination */
.pagination-aesthetic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-item {
    list-style: none;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--text-soft);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(167, 139, 250, 0.3);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Footer */
.footer-aesthetic {
    background: rgba(15, 15, 23, 0.8);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

.footer-link {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-3px);
}

/* Loading Spinner */
.spinner-aesthetic {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(167, 139, 250, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .anime-card-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 0 2rem;
    }
}

/* Efek hover untuk logo */
.hover-scale {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-scale:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 30px 50px -15px rgba(167, 139, 250, 0.6) !important;
}

/* Efek rotate lambat untuk variasi */
@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-slow {
    animation: slowRotate 20s linear infinite;
}

/* Pulse effect */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 20px 40px -10px rgba(167, 139, 250, 0.4); }
    50% { box-shadow: 0 30px 60px -10px rgba(167, 139, 250, 0.8); }
}

.pulse-soft {
    animation: softPulse 3s ease-in-out infinite;
}

/* Button accent */
.btn-accent-aesthetic {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(244, 114, 182, 0.3);
}

.bg-accent-soft {
    background: rgba(244, 114, 182, 0.1);
}

.bg-dark-soft {
    background: rgba(255, 255, 255, 0.03);
}

/* Sticky sidebar */
.sticky-top {
    position: sticky;
    top: 100px;
    z-index: 1020;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(167, 139, 250, 0.4);
}

/* List styles */
.list-unstyled li {
    transition: transform 0.2s ease;
}

.list-unstyled li:hover {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .sticky-top {
        position: static;
    }
    
    .ps-5 {
        padding-left: 1rem !important;
    }
}

/* Form styles */
.form-control.bg-dark-soft {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.form-control.bg-dark-soft:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #a78bfa !important;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1) !important;
    outline: none;
}

.form-control.bg-dark-soft::placeholder {
    color: #6b6b8b;
    opacity: 0.7;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #a78bfa;
    border-color: #a78bfa;
}

.form-check-label {
    color: #a0a0c0;
    cursor: pointer;
}

/* Help text */
.form-text {
    color: #6b6b8b !important;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Error messages */
.help-block {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.has-error .form-control {
    border-color: #ef4444 !important;
}

/* web/css/aesthetic.css - tambahkan */

.server-button {
    position: relative;
    transition: all 0.3s ease;
}

.server-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.server-button.loading {
    color: transparent !important;
}

.server-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}