/* ===================================
   VTHON ACADEMY - PRACTICE SYSTEM
   Main Shared Styles
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Yellow Gradient Colors */
    --primary-yellow: #FFD700;
    --secondary-yellow: #FFA500;
    --tertiary-yellow: #FF8C00;
    --accent-orange: #FF6347;
    
    /* Dark Theme Colors */
    --dark-bg: #0a0e27;
    --dark-card: #1a1f3a;
    --dark-card-hover: #252b4a;
    --dark-border: #2a3150;
    --dark-text: #e0e6ff;
    --dark-text-secondary: #a0a8c0;
    
    /* Gradient Backgrounds */
    --gradient-yellow: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --gradient-card: linear-gradient(135deg, #1a1f3a 0%, #252b4a 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(255, 215, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 215, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(255, 215, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Starfield Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: starfield 200s linear infinite;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

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

/* Golden Light Effects */
.golden-light {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.golden-light:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.golden-light:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Container */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    background: var(--gradient-yellow);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 165, 0, 0.4);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    border-radius: 5px;
    transition: transform var(--transition-normal);
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
    display: block;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    transition: width var(--transition-normal);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #333;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 2;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

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

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-yellow);
    color: #333;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: var(--gradient-yellow);
    color: #333;
}

/* Cards */
.card {
    background: var(--gradient-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--dark-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-yellow);
}

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

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--dark-border);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    min-width: 300px;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(26, 31, 58, 0.9) 100%);
}

.notification-success i {
    color: #00ff88;
}

.notification-error {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(26, 31, 58, 0.9) 100%);
}

.notification-error i {
    color: #ff6b6b;
}

.notification-info {
    border-color: var(--primary-yellow);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(26, 31, 58, 0.9) 100%);
}

.notification-info i {
    color: var(--primary-yellow);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .container {
        width: 95%;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .notification {
        min-width: 90%;
        max-width: 90%;
    }
}

/* ===================================
   FOOTER STYLES
   =================================== */

footer {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #FF8C00 50%, #FF6347 75%, #FF4500 100%);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    margin-top: auto;
    color: #333;
    box-shadow: 0 -5px 20px rgba(255, 140, 0, 0.4);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.8));
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.footer-logo {
    text-align: left;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-logo-container img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.footer-logo .slogan {
    color: #333;
    font-style: italic;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.footer-contact {
    text-align: left;
}

.footer-contact p {
    margin: 8px 0;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.footer-contact i {
    color: #333;
    margin-right: 8px;
    width: 16px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.footer-social {
    text-align: left;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-link.tiktok:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    border-color: transparent;
}

.social-link i {
    margin-right: 6px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-section {
        text-align: center !important;
    }

    .social-links {
        justify-content: center;
    }

    footer {
        padding: 30px 0 15px;
    }
}
