/* Modern Tech & Fun Styles for JokeTok */
:root {
    --primary-gradient: linear-gradient(135deg, #6c63ff 0%, #ff6584 100%);
    --secondary-gradient: linear-gradient(135deg, #ff6584 0%, #ffbe76 100%);
    --tech-blue: #6c63ff;
    --tech-pink: #ff6584;
    --tech-orange: #ffbe76;
    --tech-green: #44bd32;
    --tech-dark: #2c2c54;
    --tech-light: #f5f6fa;
    --tech-glass: rgba(255, 255, 255, 0.1);
    --tech-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --tech-glow: 0 0 20px rgba(108, 99, 255, 0.3);
}

/* Modern Glassmorphism Effects */
.glass-card {
    background: var(--tech-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: var(--tech-shadow);
}

/* Futuristic Animations */
@keyframes glow {
    0%, 100% { box-shadow: var(--tech-glow); }
    50% { box-shadow: 0 0 30px rgba(108, 99, 255, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* Modern Typography */
.tech-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Button Styles */
.btn-tech {
    background: var(--primary-gradient);
    border: none;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-tech:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
    animation: glow 2s infinite;
}

/* Enhanced Card Styles with Crystal Glass Effect */
.tech-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 2;
}

.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(108, 99, 255, 0.05) 0%,
        rgba(255, 101, 132, 0.05) 50%,
        rgba(255, 190, 118, 0.05) 100%
    );
    z-index: 1;
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(108, 99, 255, 0.1);
    backdrop-filter: blur(25px);
}

/* Floating Elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Effects */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Modern Navigation */
.nav-tech {
    background: var(--primary-gradient);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-tech .nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tech .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-tech .nav-link:hover::after {
    width: 100%;
}

/* Hero Section Enhancements */
.hero-tech {
    background: var(--primary-gradient);
    color: white;
    padding: 5rem 0;
    border-radius: 0 0 50px 50px;
    position: relative;
    overflow: hidden;
}

.hero-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 101, 132, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(108, 99, 255, 0.3) 0%, transparent 50%);
}

.hero-tech h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Category Badges */
.category-tech {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.category-tech:hover {
    transform: scale(1.05);
    box-shadow: var(--tech-glow);
}

/* Action Buttons */
.action-tech {
    background: none;
    border: none;
    color: var(--tech-dark);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.action-tech:hover {
    background: var(--tech-glass);
    color: var(--tech-blue);
    transform: scale(1.2);
    box-shadow: var(--tech-glow);
}

/* Form Enhancements */
.form-tech {
    background: white;
    border-radius: 20px;
    box-shadow: var(--tech-shadow);
    padding: 2.5rem;
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.form-tech .form-control {
    border-radius: 15px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(108, 99, 255, 0.1);
    transition: all 0.3s ease;
}

.form-tech .form-control:focus {
    border-color: var(--tech-blue);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer Enhancements */
.footer-tech {
    background: var(--tech-dark);
    color: white;
    padding: 3rem 0;
    position: relative;
}

.footer-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
}

/* Social Icons */
.social-tech {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: var(--tech-glass);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-tech:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: var(--tech-glow);
}

/* Loading Animations */
.loading-tech {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    text-align: center;
}

.loading-tech .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-tech h1 {
        font-size: 2.5rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .form-tech {
        padding: 1.5rem;
    }
}

/* Special Effects for Joke Cards */
.joke-tech {
    background: white;
    border-radius: 20px;
    box-shadow: var(--tech-shadow);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.joke-tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.joke-tech:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(108, 99, 255, 0.2);
}

.joke-tech .joke-text {
    font-size: 1.3rem;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--tech-dark) 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Emoji Reactions */
.emoji-tech {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.emoji-tech:hover {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Celebration Effects */
.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-gradient);
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}