/**
 * StChannel Theme CSS - Refactored
 * 
 * Tema personalizzato che utilizza le variabili unificate da _variables.css
 * Le variabili originali sono mantenute per compatibilità tramite alias in _variables.css
 * 
 * Richiede: _variables.css caricato prima
 */

/* ========================================
   HEADER STYLES
   ======================================== */

.stchannel-header {
    background: var(--st-nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--st-chat-border);
    position: sticky;
    top: 0;
    z-index: var(--st-z-sticky);
    transition: all var(--st-transition-fast);
}

.stchannel-navbar-brand img {
    height: 40px;
    width: auto;
    transition: transform var(--st-transition-normal);
}

.stchannel-navbar-brand:hover img {
    transform: scale(1.05);
}

.stchannel-nav-link {
    color: var(--st-nav-link-color) !important;
    font-weight: var(--st-font-medium);
    padding: 0.75rem 1rem !important;
    transition: all var(--st-transition-normal);
    position: relative;
    border-radius: var(--st-radius-sm);
    margin: 0 var(--st-space-xs);
}

.stchannel-nav-link:hover {
    color: var(--st-nav-link-hover-color) !important;
    transform: translateY(-2px);
    background-color: rgba(var(--st-primary-rgb), 0.1);
}

.stchannel-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--st-gradient-primary);
    transition: all var(--st-transition-normal);
    transform: translateX(-50%);
    border-radius: var(--st-radius-full);
}

.stchannel-nav-link:hover::after,
.stchannel-nav-link.active::after {
    width: 80%;
}

.stchannel-nav-link.active {
    color: var(--st-primary) !important;
    font-weight: var(--st-font-semibold);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.stchannel-footer {
    background: var(--st-nav-bg);
    border-top: 1px solid var(--st-chat-border);
    margin-top: auto;
    padding: var(--st-space-2xl) 0 var(--st-space-xl) 0;
}

.stchannel-footer-title {
    color: var(--st-primary);
    font-weight: var(--st-font-semibold);
    margin-bottom: var(--st-space-md);
    font-size: var(--st-text-lg);
}

.stchannel-footer-link {
    color: var(--st-nav-link-color);
    text-decoration: none;
    transition: all var(--st-transition-normal);
    display: block;
    padding: var(--st-space-xs) 0;
    border-radius: var(--st-radius-sm);
}

.stchannel-footer-link:hover {
    color: var(--st-primary);
    transform: translateX(5px);
    padding-left: var(--st-space-sm);
}

.stchannel-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(var(--st-primary-rgb), 0.1);
    border: 1px solid rgba(var(--st-primary-rgb), 0.3);
    border-radius: var(--st-radius-full);
    color: var(--st-primary);
    text-decoration: none;
    transition: all var(--st-transition-normal);
    margin: 0 var(--st-space-sm);
}

.stchannel-social-link:hover {
    background: var(--st-primary);
    color: var(--st-black);
    transform: translateY(-3px);
    box-shadow: var(--st-shadow-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.stchannel-hero {
    background: var(--st-gradient-hero);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stchannel-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(var(--st-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--st-primary-rgb), 0.1) 0%, transparent 50%);
    z-index: 1;
}

.stchannel-hero-content {
    position: relative;
    z-index: 2;
}

/* ========================================
   BUTTONS PERSONALIZZATI
   ======================================== */
.btn-stchannel-primary {
    background: var(--st-gradient-primary);
    border: none;
    color: var(--st-btn-primary-color);
    font-weight: var(--st-font-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--st-btn-radius);
    transition: all var(--st-transition-normal);
    box-shadow: var(--st-shadow-primary);
}

.btn-stchannel-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-primary-lg);
    color: var(--st-btn-primary-color);
    background: var(--st-gradient-primary-intense);
}

.btn-stchannel-outline {
    background: transparent;
    border: 2px solid var(--st-primary);
    color: var(--st-primary);
    font-weight: var(--st-font-semibold);
    padding: 0.75rem 2rem;
    border-radius: var(--st-btn-radius);
    transition: all var(--st-transition-normal);
}

.btn-stchannel-outline:hover {
    background: var(--st-primary);
    color: var(--st-btn-primary-color);
    transform: translateY(-2px);
    box-shadow: var(--st-shadow-primary);
}

/* ========================================
   CARDS PERSONALIZZATE
   ======================================== */

.stchannel-card {
    background: var(--st-card-bg);
    border-radius: var(--st-radius-lg);
    box-shadow: var(--st-shadow-sm);
    transition: all var(--st-transition-normal);
    overflow: hidden;
    border: 1px solid var(--st-card-border);
}

.stchannel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--st-card-hover-shadow);
    border-color: var(--st-primary);
}

.stchannel-card-header {
    background: var(--st-gradient-primary);
    color: var(--st-btn-primary-color);
    padding: var(--st-space-lg);
    font-weight: var(--st-font-semibold);
}

/* ========================================
   UTILITÀ TEMATICHE
   ======================================== */

.text-stchannel-primary {
    color: var(--st-primary) !important;
}

.bg-stchannel-primary {
    background: var(--st-primary) !important;
}

.bg-stchannel-gradient {
    background: var(--st-gradient-primary) !important;
}

.bg-stchannel-dark {
    background: var(--st-dark-card) !important;
}

.border-stchannel-primary {
    border-color: var(--st-primary) !important;
}

/* ========================================
   ANIMAZIONI
   ======================================== */

@keyframes stchannel-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--st-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--st-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--st-primary-rgb), 0);
    }
}

.stchannel-pulse {
    animation: stchannel-pulse 2s infinite;
}

@keyframes stchannel-glow {
    0%, 100% {
        box-shadow: var(--st-shadow-primary);
    }
    50% {
        box-shadow: var(--st-shadow-glow);
    }
}

.stchannel-glow {
    animation: stchannel-glow 3s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .stchannel-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .stchannel-navbar-brand img {
        height: 32px;
    }
    
    .stchannel-social-link {
        width: 35px;
        height: 35px;
        margin: 0 var(--st-space-xs);
    }
    
    .stchannel-footer {
        padding: var(--st-space-xl) 0 var(--st-space-lg) 0;
    }
    
    .btn-stchannel-primary,
    .btn-stchannel-outline {
        padding: 0.6rem 1.5rem;
        font-size: var(--st-text-sm);
    }
}

/* === DARK MODE SUPPORT === */
@media (prefers-color-scheme: dark) {
    .stchannel-card {
        background: #2d2d2d;
        color: #ffffff;
    }
    
    .stchannel-footer-link {
        color: rgba(255, 255, 255, 0.9);
    }
}

