/* AMSHOP Home Page Styles - Same as Shop Theme */

body {
    background-color: #111827;
    color: white;
}

.main-content {
    background-color: #111827;
    min-height: 100vh;
    position: relative;
    padding-top: 10px;
}

/* Particle animation styles */
@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Hello World Styling */
.hello-world {
    text-align: center;
    padding: 3rem 2rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    margin: 2rem 0;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hello-world h1 {
    color: #f59e0b;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hello-world p {
    color: #9ca3af;
    margin-bottom: 0;
}

/* Particle Effect - Same as shop page */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: fall linear infinite;
    z-index: 9999;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Banner Carousel Styles */
.banner-carousel-container {
    position: relative;
    width: calc(100% - 2rem); /* Margin kiri-kanan 1rem */
    margin: 0 auto; /* Center container */
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    aspect-ratio: 16/9; /* Default aspect ratio */
    border-radius: 20px; /* Sudut melengkung */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Shadow untuk efek depth */
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.banner-image {
    width: 100%;
    height: 100%;
    display: block;
    animation: fadeIn 0.8s ease-out;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* Desktop specific styling - Container follows image */
@media (min-width: 769px) {
    .banner-carousel-container {
        height: auto;
        aspect-ratio: 2.78/1; /* Mengikuti aspect ratio gambar 1448x520 */
        display: block;
        width: calc(100% - 3rem); /* Margin lebih besar untuk desktop */
        border-radius: 25px; /* Sudut lebih melengkung untuk desktop */
    }
    
    .banner-carousel {
        height: 100%;
    }
    
    .banner-slide {
        height: 100%;
        display: block;
    }
    
    .banner-image {
        width: 100%;
        height: 100%;
        display: block;
    }
    
    .banner-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }
}

/* Large desktop styling */
@media (min-width: 1200px) {
    .banner-carousel-container {
        aspect-ratio: 2.78/1; /* Tetap mengikuti aspect ratio gambar */
    }
}

/* Navigation Arrows */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.banner-arrow-left {
    left: 20px;
}

.banner-arrow-right {
    right: 20px;
}

/* Dots Indicator */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #f59e0b;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile and Tablet - Keep original aspect ratio */
@media (max-width: 768px) {
    .banner-carousel-container {
        aspect-ratio: 2.78/1; /* Maintain wide aspect ratio on tablet */
        height: auto;
        display: block; /* Reset desktop flex */
        width: calc(100% - 1.5rem); /* Margin lebih kecil untuk mobile */
        border-radius: 15px; /* Sudut melengkung untuk mobile */
    }
    
    .banner-carousel {
        height: 100%; /* Reset desktop auto height */
    }
    
    .banner-slide {
        height: 100%; /* Reset desktop auto height */
        display: block; /* Reset desktop flex */
    }
    
    .banner-image {
        height: 100%; /* Reset desktop auto height */
        display: block; /* Reset desktop flex */
    }
    
    .banner-image img {
        height: 100%; /* Reset desktop auto height */
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .banner-arrow-left {
        left: 10px;
    }
    
    .banner-arrow-right {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .banner-carousel-container {
        aspect-ratio: 2.78/1; /* Maintain wide aspect ratio on mobile */
        height: auto;
        width: calc(100% - 1rem); /* Margin lebih kecil untuk mobile kecil */
        border-radius: 12px; /* Sudut melengkung untuk mobile kecil */
    }
    
    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .banner-arrow-left {
        left: 5px;
    }
    
    .banner-arrow-right {
        right: 5px;
    }
}

@media (max-width: 360px) {
    .banner-carousel-container {
        aspect-ratio: 2.78/1; /* Maintain wide aspect ratio on small mobile */
        height: auto;
        width: calc(100% - 0.5rem); /* Margin minimal untuk mobile sangat kecil */
        border-radius: 10px; /* Sudut melengkung untuk mobile sangat kecil */
    }
    
    .banner-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .banner-arrow-left {
        left: 3px;
    }
    
    .banner-arrow-right {
        right: 3px;
    }
}

/* Categories Section */
.categories-section {
    background: #0f172a;
    padding: 2rem 0;
    border-top: 1px solid #374151;
}

.categories-section .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.categories-title {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    position: relative;
    display: inline-block;
}

.categories-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fbbf24;
    border-radius: 2px;
}

/* Category Tabs Container */
.category-tabs-container {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 3rem; /* Space for arrow buttons */
    white-space: nowrap;
    width: 100%;
    flex-wrap: nowrap;
}

/* Hide scrollbar completely */
.category-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

/* Arrow buttons always visible */

/* Arrow Buttons */
.category-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.category-scroll-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.category-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.category-scroll-left {
    left: 10px;
}

.category-scroll-right {
    right: 10px;
}

/* Arrow buttons always visible on all devices */

.category-tab {
    background: #374151;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: max-content;
}

.category-tab:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.category-tab.active {
    background: #fbbf24;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Category Items Grid */
.category-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    justify-content: start;
}

.category-item {
    opacity: 1;
    transition: all 0.3s ease;
}

.category-item.hidden {
    display: none;
}

.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 1rem;
}

.category-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-5px);
}

/* TV Frame Design */
.tv-frame {
    position: relative;
    width: 120px;
    height: 100px;
    background: #1f2937;
    border: 3px solid #fbbf24;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 
        0 0 20px rgba(251, 191, 36, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.category-link:hover .tv-frame {
    box-shadow: 
        0 0 30px rgba(251, 191, 36, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* TV Screen */
.tv-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 20px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tv-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Category Icons for Default Categories */
.category-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.ml-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.ff-icon {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.pubg-icon {
    background: linear-gradient(135deg, #4a90e2, #2e5b8a);
}

.gi-icon {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
}

.val-icon {
    background: linear-gradient(135deg, #ff4655, #9a031e);
}

.cod-icon {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

/* TV Antennas */
.tv-antennas {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.antenna {
    width: 2px;
    height: 15px;
    background: #fbbf24;
    position: relative;
}

.antenna::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
}

/* TV Knobs */
.tv-knobs {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.knob {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* TV Speakers */
.tv-speakers {
    position: absolute;
    bottom: 8px;
    left: 15px;
    right: 15px;
    height: 4px;
    background: repeating-linear-gradient(
        to right,
        #374151 0px,
        #374151 2px,
        transparent 2px,
        transparent 4px
    );
    border-radius: 2px;
}

/* Category Name */
.category-name {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-top: 0.5rem;
}

/* Categories Responsive */
@media (max-width: 768px) {
    .categories-section {
        padding: 1.5rem 0;
    }
    
    .categories-title {
        font-size: 1.25rem;
    }
    
    .category-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0.5rem 3rem; /* Keep padding for arrow buttons on mobile */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .category-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: max-content;
    }
    
    .category-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
        justify-items: center;
        justify-content: start;
    }
    
    .tv-frame {
        width: 120px;
        height: 100px;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .categories-section {
        padding: 1rem 0;
    }
    
    .categories-title {
        font-size: 1.1rem;
    }
    
    .category-tabs {
        gap: 0.4rem;
        margin-bottom: 1rem;
        padding: 0.4rem 3rem; /* Keep padding for arrow buttons on small mobile */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .category-tab {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: max-content;
    }
    
    .category-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
        justify-items: center;
        justify-content: start;
    }
    
    .tv-frame {
        width: 120px;
        height: 100px;
    }
    
    .category-name {
        font-size: 0.8rem;
        font-weight: 600;
    }
}

/* Extra small mobile devices (iPhone SE, etc.) */
@media (max-width: 400px) {
    .category-items-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
    .tv-frame {
        width: 100px;
        height: 80px;
    }
    
    .category-name {
        font-size: 0.75rem;
        font-weight: 600;
    }
}
