/* Aplikasi Premium Page Styles */

/* Category Buttons Section */
.category-buttons-section {
    padding: 3rem 0 2rem 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

/* Dark mode for category buttons section */
[data-theme="dark"] .category-buttons-section {
    background: var(--bg-primary, #1a1a2e) !important;
    border-bottom: 1px solid var(--border-color, #334155) !important;
}

/* Dark mode button text contrast */
[data-theme="dark"] .category-current-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25) !important;
}

[data-theme="dark"] .category-change-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .category-change-btn:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(102, 126, 234, 0.4) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
}

[data-theme="dark"] .account-info-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
    color: white !important;
    border: 2px solid transparent !important;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3) !important;
}

[data-theme="dark"] .account-info-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4) !important;
}

.category-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.account-info-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    border: 2px solid transparent;
}

.account-info-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.5s ease;
}

.account-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    border-color: rgba(255,255,255,0.3);
}

.account-info-btn:hover::before {
    left: 100%;
}

.account-info-btn:active {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.account-info-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.account-info-btn.active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.account-info-btn.active .btn-arrow {
    transform: rotate(180deg);
}

.btn-icon {
    font-size: 1rem;
}

.btn-text {
    font-weight: 500;
}

.btn-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .category-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .account-info-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .account-type-notes {
        margin-top: 1rem;
    }
    
    .account-type-notes.show {
        display: block;
    }
}

.category-current-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-current-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.5s ease;
}

.category-current-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.category-current-btn:hover::before {
    left: 100%;
}

.account-type-notes {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    animation: slideDown 0.3s ease;
}

.account-type-notes.show {
    display: block;
}

.account-type-notes.hide {
    animation: slideUp 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.note-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 8px;
    z-index: -1;
}

.note-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sharing-account::before {
    border-left-color: #10b981;
}

.private-account::before {
    border-left-color: #f59e0b;
}

.sharing-account:hover::before {
    border-left-color: #059669;
}

.private-account:hover::before {
    border-left-color: #d97706;
}

.note-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
    margin-top: 0.25rem;
}

.note-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.note-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .account-type-notes {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .note-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .note-icon {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .note-content h4 {
        font-size: 1rem;
    }
    
    .note-content p {
        font-size: 0.85rem;
    }
}

.category-current-btn:active {
    transform: translateY(0px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.category-change-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-change-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #4f46e5;
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.category-change-btn.active {
    background: rgba(102, 126, 234, 0.2);
    color: #4f46e5;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.category-change-btn.active:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.6);
}

.categories-dropdown {
    display: none;
    margin-top: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.categories-dropdown.show {
    display: block;
}

.categories-dropdown.hide {
    animation: slideUp 0.3s ease;
}

.dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.dropdown-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.categories-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
}

.category-item-small {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.3s;
    cursor: not-allowed;
    opacity: 0.7;
}

.category-item-small:hover {
    background: #f3f4f6;
}

.category-icon-small {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.category-info-small h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status-badge.coming {
    background: #fef3c7;
    color: #d97706;
}

.dropdown-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.dropdown-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Products Section */
.products-section {
    padding: 3rem 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    padding: 1.5rem;
}

.products-grid.list-view .product-content {
    padding: 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.product-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.product-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-logo img[alt]:after {
    content: attr(alt);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1;
}

.product-card:hover .product-logo img {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.discount-badge,
.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-content {
    text-align: center;
}

.product-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-meta {
    margin-bottom: 1rem;
}

.product-meta .category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
}

.rating-text {
    font-size: 0.8rem;
    color: #6b7280;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-features span {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 500;
}

.price-section {
    margin-bottom: 1.5rem;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.current-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-cart {
    flex: 1;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cart:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.btn-buy {
    flex: 2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.page-btn {
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.page-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

@media (max-width: 768px) {
    .category-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .category-current-btn,
    .category-change-btn {
        width: 100%;
        text-align: center;
    }
    
    .categories-grid-small {
        grid-template-columns: 1fr;
    }
    
    .dropdown-header {
        padding: 1rem;
    }
    
    .dropdown-footer {
        padding: 0.75rem 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .page-btn {
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .category-buttons-section {
        padding: 2rem 0 1rem 0;
    }
    
    .products-section {
        padding: 2rem 0;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-content h3 {
        font-size: 1.1rem;
    }
}

/* Product Logo Protection */
.product-logo {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    position: relative;
}

.product-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
    pointer-events: auto;
}

.product-logo img {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative;
    z-index: 0;
} 