/* SKWK Modern Premium UI Styles */

@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --secondary-pink: #ec4899;
    --secondary-pink-light: #fbcfe8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Kanit', sans-serif;
    /* Static Mesh Gradient Background */
    background: linear-gradient(-45deg, #eff6ff, #fce7f3, #dbeafe, #fbcfe8);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Fix horizontal scroll on mobile */
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

/* Glass Card styling for Categories */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2), 0 5px 15px rgba(30, 58, 138, 0.1);
    border-color: rgba(236, 72, 153, 0.3); /* Pink tint border on hover */
}

.glass-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Shine / Sheen Effect */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 5s infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.glass-card .icon-wrapper {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--primary-blue));
    color: white;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
    transition: all 0.4s ease;
}

.glass-card:hover .icon-wrapper {
    background: linear-gradient(135deg, #f472b6, var(--secondary-pink));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.4);
}

/* SweetAlert2 Glassmorphism Overrides */
.swal2-popup {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border-radius: 1.5rem !important;
    padding: 2rem !important;
    font-family: 'Kanit', sans-serif !important;
}

.swal2-title {
    color: var(--primary-blue) !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

.swal2-close {
    color: #6b7280 !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    color: var(--secondary-pink) !important;
    transform: rotate(90deg);
}

/* Link Item inside Popup */
.premium-link-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.premium-link-item:hover {
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(251, 207, 232, 0.3)); /* Light pink tint */
    border-color: var(--secondary-pink-light);
    transform: translateX(8px);
    box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.1);
    color: var(--primary-blue);
}

.premium-link-item i {
    font-size: 1.5rem;
    margin-right: 1.25rem;
    color: var(--secondary-pink);
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.premium-link-item:hover i {
    transform: scale(1.2);
}

/* Custom Blobs for Hero Section (Static) */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.7;
    border-radius: 50%;
}

.blob-blue {
    background: #3b82f6;
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
}

.blob-pink {
    background: #ec4899;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

/* Glass Footer */
.glass-footer {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

/* Glowing Button */
.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-pink), var(--primary-blue-light));
    z-index: -1;
    border-radius: 9999px;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 0.8;
}

/* Admin Specific */
.admin-table th {
    background-color: rgba(30, 58, 138, 0.9);
    color: white;
}
