* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* OBS/TikTok browser source transparency fix */
html, body {
    background: transparent !important;
    background-color: transparent !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

/* Main container */
.main-wrapper {
    position: fixed;
    bottom: 30px;
    left: 30px;
}

.social-container {
    width: 340px;
    height: 80px;
    perspective: 1000px;
    position: relative;
}

/* Base social card */
.social-card {
    position: absolute;
    width: 97%;
    height: 100%;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.social-card.active {
    opacity: 1;
    pointer-events: auto;
}

/* Logo on left */
.card-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}

/* Info in middle */
.social-info {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    min-width: 0;
}

.social-platform {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-bottom: 2px;
}

.social-handle {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Platform icon on right (emoji fallback) */
.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    align-self: center;
}

/* ========================================
   THEME: Black Angular (Default)
   ======================================== */
.theme-angular .social-card {
    background: linear-gradient(90deg, rgba(30, 30, 30, 0.98) 0%, rgba(45, 45, 45, 0.95) 100%);
    border-radius: 15px;
    border: 2px solid rgba(80, 80, 80, 0.6);
}

.theme-angular .social-icon {
    background: rgba(60, 60, 60, 0.8);
    border-radius: 5px;
}

.theme-angular .social-platform {
    color: #888;
}

/* ========================================
   THEME: Blue Gradient
   ======================================== */
.theme-blue .social-card {
    background: linear-gradient(135deg, rgba(30, 64, 120, 0.95) 0%, rgba(45, 100, 180, 0.95) 100%);
    border-radius: 15px;
    border: 2px solid rgba(100, 150, 255, 0.4);
    box-shadow: 0 5px 30px rgba(50, 100, 200, 0.3);
    padding-left: 20px;
    padding-right: 15px;
}

.theme-blue .social-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(59, 130, 246, 0.4);
}

.theme-blue .social-platform {
    color: #93c5fd;
}

/* ========================================
   THEME: Pink/Purple Gradient
   ======================================== */
.theme-pink .social-card {
    background: linear-gradient(135deg, rgba(80, 30, 80, 0.95) 0%, rgba(120, 40, 100, 0.95) 100%);
    border-radius: 20px;
    border: 2px solid rgba(236, 72, 153, 0.4);
    box-shadow: 0 5px 30px rgba(236, 72, 153, 0.25);
    padding-left: 22px;
    padding-right: 18px;
}

.theme-pink .social-icon {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(236, 72, 153, 0.4);
}

.theme-pink .social-platform {
    color: #f9a8d4;
}

/* ========================================
   THEME: Black Rounded (Clean)
   ======================================== */
.theme-black .social-card {
    background: rgba(0, 0, 0, 0.95);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding-left: 20px;
    padding-right: 15px;
}

.theme-black .social-icon {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-black .social-platform {
    color: #666;
}

/* ========================================
   THEME: Neon Glow
   ======================================== */
.theme-neon .social-card {
    background: rgba(10, 10, 20, 0.95);
    border-radius: 10px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 30px rgba(0, 255, 255, 0.05);
    padding-left: 18px;
    padding-right: 14px;
}

.theme-neon .social-icon {
    background: transparent;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.theme-neon .social-platform {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.theme-neon .social-handle {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ========================================
   ANIMATIONS: Fade
   ======================================== */
.anim-fade .social-card {
    transition: opacity 0.5s ease;
    transform: none;
}

.anim-fade .social-card.active {
    opacity: 1;
}

.anim-fade .social-card.exit {
    opacity: 0;
}

/* ========================================
   ANIMATIONS: Slide
   ======================================== */
.anim-slide .social-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-100%);
    opacity: 0;
}

.anim-slide .social-card.active {
    transform: translateX(0);
    opacity: 1;
}

.anim-slide .social-card.exit {
    transform: translateX(100%);
    opacity: 0;
}

/* ========================================
   ANIMATIONS: Scale Fade
   ======================================== */
.anim-scale .social-card {
    transition: all 0.4s ease;
    transform: scale(0.8);
    opacity: 0;
}

.anim-scale .social-card.active {
    transform: scale(1);
    opacity: 1;
}

.anim-scale .social-card.exit {
    transform: scale(1.1);
    opacity: 0;
}

/* ========================================
   ANIMATIONS: Flip 3D
   ======================================== */
.anim-flip .social-card {
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: rotateY(-90deg);
    opacity: 0;
}

.anim-flip .social-card.active {
    transform: rotateY(0deg);
    opacity: 1;
}

.anim-flip .social-card.exit {
    transform: rotateY(90deg);
    opacity: 0;
}

/* ========================================
   ANIMATIONS: Drop
   ======================================== */
.anim-drop .social-card {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateY(-50px);
    opacity: 0;
}

.anim-drop .social-card.active {
    transform: translateY(0);
    opacity: 1;
}

.anim-drop .social-card.exit {
    transform: translateY(50px);
    opacity: 0;
}

/* Progress bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #ec4899);
    width: 0%;
    transition: width 0.1s linear;
}

.theme-angular .progress-bar {
    background: linear-gradient(90deg, #666, #888);
}

.theme-blue .progress-bar {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.theme-pink .progress-bar {
    background: linear-gradient(90deg, #f472b6, #a855f7);
}

.theme-neon .progress-bar {
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Platform icon images */
.card-twitch,
.card-twitter,
.card-discord,
.card-tiktok,
.card-youtube,
.card-instagram {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
    margin-right: 5px;
    border-radius: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
}

/* Theme-specific icon backgrounds */
.theme-angular .card-twitch,
.theme-angular .card-twitter,
.theme-angular .card-discord,
.theme-angular .card-tiktok,
.theme-angular .card-youtube,
.theme-angular .card-instagram {
    background: rgba(60, 60, 60, 0.8);
    border-radius: 5px;
}

.theme-blue .card-twitch,
.theme-blue .card-twitter,
.theme-blue .card-discord,
.theme-blue .card-tiktok,
.theme-blue .card-youtube,
.theme-blue .card-instagram {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(29, 78, 216, 0.3));
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(59, 130, 246, 0.2);
}

.theme-pink .card-twitch,
.theme-pink .card-twitter,
.theme-pink .card-discord,
.theme-pink .card-tiktok,
.theme-pink .card-youtube,
.theme-pink .card-instagram {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(236, 72, 153, 0.2);
}

.theme-black .card-twitch,
.theme-black .card-twitter,
.theme-black .card-discord,
.theme-black .card-tiktok,
.theme-black .card-youtube,
.theme-black .card-instagram {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-neon .card-twitch,
.theme-neon .card-twitter,
.theme-neon .card-discord,
.theme-neon .card-tiktok,
.theme-neon .card-youtube,
.theme-neon .card-instagram {
    background: transparent;
    border: 2px solid #ff00ff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.theme-custom .card-twitch,
.theme-custom .card-twitter,
.theme-custom .card-discord,
.theme-custom .card-tiktok,
.theme-custom .card-youtube,
.theme-custom .card-instagram {
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}

/* Platform-specific icon colors (for emoji fallback) */
.twitch .social-icon { background: linear-gradient(135deg, #9146FF, #772CE8) !important; }
.twitter .social-icon { background: linear-gradient(135deg, #1DA1F2, #0d8bd9) !important; }
.youtube .social-icon { background: linear-gradient(135deg, #FF0000, #cc0000) !important; }
.instagram .social-icon { background: linear-gradient(135deg, #E1306C, #833AB4) !important; }
.discord .social-icon { background: linear-gradient(135deg, #5865F2, #4752C4) !important; }
.tiktok .social-icon { background: linear-gradient(135deg, #000000, #333333) !important; border: 1px solid #fff; }

/* ========================================
   THEME: Custom (Base styles, overridden by JS)
   ======================================== */
.theme-custom .social-card {
    background: #1a1a2e;
    border-radius: 16px;
    border: 2px solid #6366f1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding-left: 20px;
    padding-right: 15px;
}

.theme-custom .social-icon {
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}

.theme-custom .social-platform {
    color: #6366f1;
}

.theme-custom .social-handle {
    color: #ffffff;
}

.theme-custom .progress-bar {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Logo styling for all themes */
.card-logo {
    border-radius: 8px;
    background: transparent;
}
