/* SpotterCard Theme Variables */
:root {
    --neon-teal: #00e5e5;
    --neon-blue: #0077ff;
    --deep-blue: #004080;
    --pale-teal: #80ffff;
    --dark-teal: #003636;
    --cyber-black: #0a0a0a;
    --cyber-gray: #1f1f27;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glow-teal: 0 0 10px #00e5e5, 0 0 20px #00e5e5, 0 0 30px #00e5e5;
    --glow-blue: 0 0 10px #0077ff, 0 0 20px #0077ff, 0 0 30px #0077ff;
}

/* SpotterCard Component Reset - More selective to avoid breaking Vue components */
.spottercard-container .spotter-card *,
.spottercard-preview .spotter-card * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* SpotterCard Component Styling - CYBERPUNK THEME - Scoped to components only */
.spottercard-container,
.spottercard-customization,
.spottercard-preview {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--cyber-black);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-image: 
        radial-gradient(circle at 25% 10%, rgba(0, 229, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 90%, rgba(0, 119, 255, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Theme-specific body styling */
.spotter-card-body.theme-minimalist,
body.theme-minimalist {
    background: #f5f5f5 !important;
    font-family: 'Verdana', 'Arial', sans-serif !important;
    color: #000000 !important;
    border: 1px solid #999999;
    box-shadow: inset 1px 1px 0px #ffffff, inset -1px -1px 0px #808080;
}



html.theme-cyberpunk,
.spotter-card-body.theme-cyberpunk,
body.theme-cyberpunk {
    background: #0a0a0a !important;
    background-image:
        radial-gradient(circle at 25% 10%, rgba(0, 229, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 90%, rgba(0, 119, 255, 0.15) 0%, transparent 50%) !important;
    background-attachment: fixed !important;
    font-family: 'Orbitron', sans-serif !important;
    color: #ffffff !important;
    min-height: 100vh !important;
}

/* Ensure cyberpunk theme takes precedence */
html.theme-cyberpunk body,
body.theme-cyberpunk {
    background-color: #0a0a0a !important;
}

/* Additional fallbacks for cyberpunk background */
body.theme-cyberpunk * {
    box-sizing: border-box;
}

body.theme-cyberpunk::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    background-image:
        radial-gradient(circle at 25% 10%, rgba(0, 229, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 90%, rgba(0, 119, 255, 0.15) 0%, transparent 50%);
    z-index: -999;
    pointer-events: none;
}

/* Site Navigation */
.site-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.back-to-site,
.edit-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-teal);
    text-decoration: none;
    border: 1px solid var(--neon-teal);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-to-site:hover,
.edit-card:hover {
    background: rgba(0, 229, 229, 0.2);
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 229, 229, 0.5);
    transform: translateY(-2px);
}

/* Container Styles for SpotterCard */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Cyberpunk Grid Background */
.cyberpunk-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(transparent 97%, rgba(0, 229, 229, 0.3) 3%), 
        linear-gradient(90deg, transparent 97%, rgba(0, 119, 255, 0.3) 3%);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.3;
}

/* Glitch Noise Overlay */
.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 10;
}

/* Container styles are handled by Bootstrap and spotter-card-container */

/* SpotterCard Header */
.cyber-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.spotem-banner {
    position: relative;
    background: linear-gradient(90deg, var(--cyber-black), var(--dark-teal), var(--cyber-black));
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
    border-top: 2px solid var(--neon-blue);
    border-bottom: 2px solid var(--neon-teal);
    animation: bannerGlow 3s infinite alternate;
}

.spotem-banner h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-teal));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-teal);
}

.spotem-banner .tagline {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: var(--pale-teal);
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Main SpotterCard */
.spotter-card {
    background: linear-gradient(135deg, var(--cyber-gray) 0%, var(--cyber-black) 100%);
    border: 2px solid var(--neon-teal);
    border-radius: 0;
    box-shadow: var(--glow-teal), inset 0 0 50px rgba(0, 229, 229, 0.1);
    position: relative;
    overflow: hidden;
    animation: cardPulse 4s infinite alternate;
}

/* Profile Header Section */
.profile-header {
    background: linear-gradient(135deg, var(--cyber-black) 0%, var(--cyber-gray) 50%, var(--dark-teal) 100%);
    padding: 40px;
    position: relative;
    border-bottom: 1px solid var(--neon-teal);
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 1px, rgba(0, 229, 229, 0.1) 1px),
        linear-gradient(rgba(0, 229, 229, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.profile-info {
    position: relative;
    z-index: 2;
}

.profile-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

/* Avatar Section */
.avatar-section {
    position: relative;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.avatar-hexagon {
    width: 150px;
    height: 150px;
    background: var(--neon-teal);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hexagonGlow 3s infinite alternate;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    object-fit: cover;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

/* Frame Styles */
.profile-avatar.frame-circle {
    clip-path: circle(50%);
}

.profile-avatar.frame-rounded {
    clip-path: inset(0 round 20px);
    border-radius: 20px;
}

.profile-avatar.frame-square {
    clip-path: none;
    border-radius: 0;
}

.profile-avatar.frame-diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.profile-avatar.frame-star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* User Info Section */
.user-info {
    text-align: left;
}

.username {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--neon-teal);
    text-shadow: var(--glow-teal);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.user-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.3rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.bio-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.location-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Stats Section */
.stats-section {
    text-align: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, var(--cyber-gray) 0%, var(--cyber-black) 100%);
    border: 1px solid var(--neon-blue);
    padding: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scanline 3s ease-in-out infinite;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
    display: block;
    text-shadow: var(--glow-blue);
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Social Links Section */
.social-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--cyber-gray) 0%, var(--cyber-black) 100%);
    border: 1px solid var(--neon-teal);
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-teal);
    text-shadow: var(--glow-teal);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--cyber-black) 0%, var(--cyber-gray) 100%);
    border: 1px solid var(--neon-blue);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    color: var(--neon-blue);
    border-color: var(--neon-teal);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: var(--neon-teal);
}

/* Recent Posts Section */
.posts-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--cyber-gray) 0%, var(--cyber-black) 100%);
    border: 1px solid var(--neon-blue);
    position: relative;
}

.post-item {
    background: linear-gradient(135deg, var(--cyber-black) 0%, var(--cyber-gray) 100%);
    border: 1px solid var(--dark-teal);
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.post-item:hover {
    border-color: var(--neon-teal);
    box-shadow: 0 0 15px rgba(0, 229, 229, 0.3);
}

.post-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.post-content {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Team SGG Badge */
.team-sgg-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 8px 16px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 0;
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    animation: goldGlow 2s infinite alternate;
}

/* Streaming Info */
.streaming-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.info-item {
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--cyber-black) 0%, var(--cyber-gray) 100%);
    border: 1px solid var(--dark-teal);
}

.info-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-right: 10px;
}

.info-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Effects */
.spotter-card.effect-glow {
    box-shadow: 0 0 20px var(--sc-primary-color, var(--neon-teal));
}

.spotter-card.effect-float {
    animation: float 3s ease-in-out infinite;
}

.spotter-card.effect-bounce {
    animation: bounce 2s infinite;
}

.spotter-card.effect-scanlines {
    background-image: linear-gradient(transparent 50%, rgba(0,0,0,0.1) 50%);
    background-size: 100% 4px;
}

/* Animations */
@keyframes bannerGlow {
    0% { box-shadow: 0 0 5px rgba(0, 119, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(0, 229, 229, 0.8), 0 0 30px rgba(0, 119, 255, 0.5); }
}

@keyframes cardPulse {
    0% { box-shadow: var(--glow-teal), inset 0 0 50px rgba(0, 229, 229, 0.1); }
    100% { box-shadow: var(--glow-blue), inset 0 0 50px rgba(0, 119, 255, 0.1); }
}

@keyframes hexagonGlow {
    0% { box-shadow: var(--glow-teal); }
    100% { box-shadow: var(--glow-blue), 0 0 40px var(--neon-teal); }
}

@keyframes scanline {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes goldGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.5); }
}

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

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

/* Theme Overrides */
.spotter-card-body.theme-minimalist .spotter-card {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: none;
}

.spotter-card-body.theme-minimalist .profile-header {
    background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
}

.spotter-card-body.theme-anime .spotter-card {
    background: white;
    border: 1px solid #fed7d7;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: float 3s ease-in-out infinite;
}

.spotter-card-body.theme-anime .profile-header {
    background: linear-gradient(135deg, #ff6b9d 0%, #4ecdc4 50%, #45b7d1 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-main {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .username {
        font-size: 2rem;
    }
    
    .user-title {
        font-size: 1.1rem;
    }
    
    .avatar-container,
    .avatar-hexagon {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
}

/* Custom Background Support */
.custom-background {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Dark mode compatibility */
[data-bs-theme="dark"] .spotter-card-body.theme-minimalist {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    color: #ffffff;
}

[data-bs-theme="dark"] .spotter-card-body.theme-minimalist .spotter-card {
    background: rgba(26, 35, 50, 0.95);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #ffffff;
}