/* Kategori Page Styles */

/* Header Styles - Same as Homepage */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 1rem 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2563eb;
    margin: 0;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
}

nav ul li a.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions a {
    text-decoration: none;
    color: var(--button-text);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.header-actions a:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.login, .register {
    text-decoration: none;
    font-weight: 500;
}

.login {
    color: var(--button-text);
}

.register {
    color: var(--accent-primary);
}

.login:hover, .register:hover {
    background: var(--bg-tertiary);
}

.cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart:hover {
    background: var(--border-color);
}

.cart-count {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer !important;
    transition: all 0.1s ease;
    box-shadow: 0 4px 12px var(--shadow-color);
    user-select: none;
    pointer-events: auto !important;
    white-space: nowrap;
    min-width: 80px;
}

.dark-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: var(--border-color);
    border-radius: 25px;
    transition: background 0.3s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.toggle-switch.active {
    background: var(--accent-primary) !important;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(25px);
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
    min-width: 35px;
    text-align: left;
}

/* Main Content Styles */
.main-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}


.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.section-header .view-all-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.section-header .view-all-link:hover {
    color: var(--accent-secondary);
}

.categories-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns */
    gap: 1.5rem; /* Increased gap for better spacing */
    padding: 0 20px;
    max-width: 900px; /* Adjusted width for a 3x2 layout */
    margin: 0 auto; /* Center the grid */
}

.category-card {
    background: var(--card-bg);
    border-radius: 10px; /* Larger border-radius */
    padding: 1rem; /* Larger padding */
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem; /* Larger gap */
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    min-height: 140px; /* Larger height */
}

.category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--gradient-end) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
    border-color: var(--border-color);
}

.category-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-color: var(--border-color);
}

.category-icon {
    font-size: 1.8rem; /* Larger icon */
    min-width: auto;
    text-align: center;
    padding: 0.5rem; /* Larger padding */
    border-radius: 8px; /* Larger border-radius */
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--accent-primary);
    color: white;
}

.category-card.coming-soon .category-icon {
    background: var(--border-color);
    color: var(--text-muted);
}

.category-content {
    flex: 1;
    width: 100%;
}

.category-content h3 {
    font-size: 1rem; /* Larger font */
    margin-bottom: 0.3rem; /* Larger margin */
    font-weight: 600;
    color: var(--text-primary);
}

.category-content p {
    color: var(--text-secondary);
    font-size: 0.8rem; /* Larger font */
    margin-bottom: 0.5rem; /* Larger margin */
    line-height: 1.4; /* Larger line-height */
}

.category-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem; /* Larger gap */
    font-size: 0.7rem; /* Larger font */
    color: var(--text-muted);
}

.category-stats .status {
    padding: 0.2rem 0.5rem; /* Larger padding */
    border-radius: 12px; /* Larger border-radius */
    font-size: 0.7rem; /* Larger font */
}

.category-stats .status.available {
    background: var(--accent-secondary);
    color: white;
}

.category-stats .status.coming {
    background: #f59e0b;
    color: white;
}

.category-arrow {
    font-size: 1.1rem; /* Larger arrow */
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: 0.4rem; /* Larger margin */
}

.category-card:hover .category-arrow {
    transform: translateY(3px); /* Adjusted transform */
    color: var(--accent-primary);
}

/* Info Section */
.info-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 20px; /* Add horizontal padding for content */
}

.info-card {
    background: var(--card-bg);
    border-radius: 12px; /* Smoother corners */
    padding: 2.5rem; /* More spacious padding */
    box-shadow: 0 8px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    line-height: 1;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.info-card .info-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.info-card .info-link:hover {
    color: var(--accent-secondary);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--text-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--gradient-end));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive Design */
@media (min-width: 1201px) {
    .categories-grid {
        max-width: 800px; /* Wider for big screens */
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.2rem;
        min-height: 160px;
    }
    
    .category-icon {
        font-size: 2rem;
        padding: 0.6rem;
    }
    
    .category-content h3 {
        font-size: 1.1rem;
    }
    
    .category-content p {
        font-size: 0.9rem;
    }
    
    .category-stats {
        font-size: 0.8rem;
    }
    
    .category-stats .status {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .category-arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 1rem;
        height: auto;
        flex-wrap: wrap;
    }
    
    .header-left {
        gap: 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns on mobile */
        gap: 0.75rem;
        max-width: 550px; /* Smaller max-width for mobile */
        padding: 0 15px;
    }
    
    .category-card {
        padding: 0.8rem;
        min-height: 120px;
    }
    
    .category-icon {
        font-size: 1.5rem;
        padding: 0.4rem;
    }
    
    .category-content h3 {
        font-size: 0.9rem;
    }
    
    .category-content p {
        font-size: 0.75rem;
    }
    
    .category-stats {
        font-size: 0.65rem;
    }
    
    .category-stats .status {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .category-arrow {
        font-size: 1rem;
    }
    
    .dark-mode-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .toggle-switch {
        width: 40px;
        height: 20px;
    }
    
    .toggle-slider {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
    
    .toggle-switch.active .toggle-slider {
        transform: translateX(20px);
    }
}

@media (max-width: 480px) {
    
    .categories-section, .info-section {
        padding: 60px 0; /* Adjusted padding for better spacing */
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr); /* Keep 3 columns */
        gap: 0.5rem;
        max-width: 450px; /* Even smaller max-width */
    }
    
    .category-card {
        padding: 0.6rem;
        min-height: 100px;
    }
    
    .category-icon {
        font-size: 1.3rem;
        padding: 0.3rem;
    }
    
    .category-content h3 {
        font-size: 0.8rem;
    }
    
    .category-content p {
        font-size: 0.65rem;
    }
    
    .category-stats {
        font-size: 0.55rem;
    }
    
    .category-stats .status {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
    
    .category-arrow {
        font-size: 0.9rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

.info-card:hover {
    box-shadow: 0 12px 30px var(--shadow-hover), 0 0 0 1px var(--accent-primary); /* Enhanced hover shadow with accent border */
    border-color: transparent; /* Ensure no border flickers on hover */
}
