/* SkillSmith Institute Base Styles */

/* ============================================
   SkillSmith Logo Styles
   ============================================ */
.skillsmith-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fire-brackets {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    position: relative;
    z-index: 5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.bracket-fire {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
}

.bracket-flame {
    width: 4px;
    height: 15px;
    background: linear-gradient(to top, #e74c3c, #f39c12);
    border-radius: 2px 2px 50% 50%;
    animation: logo-flicker 1.2s infinite alternate;
}

.bracket-flame:nth-child(1) { 
    animation-delay: 0s; 
    height: 12px; 
}

.bracket-flame:nth-child(2) { 
    animation-delay: 0.2s; 
    height: 16px; 
}

.bracket-flame:nth-child(3) { 
    animation-delay: 0.4s; 
    height: 14px; 
}

.bracket-flame:nth-child(4) { 
    animation-delay: 0.6s; 
    height: 13px; 
}

.code-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.code-spark {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #f39c12;
    border-radius: 50%;
    animation: spark-fly 2s infinite;
}

.code-spark:nth-child(1) { 
    top: 12px; 
    left: 8px; 
    animation-delay: 0s; 
}

.code-spark:nth-child(2) { 
    top: 10px; 
    right: 10px; 
    animation-delay: 0.5s; 
}

.code-spark:nth-child(3) { 
    top: 25px; 
    left: 12px; 
    animation-delay: 1s; 
}

.code-spark:nth-child(4) { 
    top: 22px; 
    right: 8px; 
    animation-delay: 1.5s; 
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .main {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.logo-text .sub {
    font-size: 10px;
    color: #7f8c8d;
    margin: 2px 0 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   Logo Animations
   ============================================ */
@keyframes logo-flicker {
    0% { 
        transform: scaleY(1) rotate(-1deg); 
        opacity: 0.9; 
    }
    100% { 
        transform: scaleY(1.3) rotate(1deg); 
        opacity: 1; 
    }
}

@keyframes spark-fly {
    0%, 90%, 100% { 
        opacity: 0; 
        transform: scale(0); 
    }
    10%, 80% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.skillsmith-logo:hover .fire-brackets {
    color: #2980b9;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* ============================================
   Navigation Styles
   ============================================ */
.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db !important;
}

.nav-link.active {
    color: #3498db !important;
    font-weight: 600;
}

/* Special styling for custom admin panel links */
.admin-panel-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.staff-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
}

.student-badge {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
}

/* ============================================
   Dropdown Enhancements
   ============================================ */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dropdown-header {
    font-weight: 600;
    color: #667eea;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Status Indicators
   ============================================ */
.drive-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.admin-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff6b6b;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   Footer Styles
   ============================================ */
footer {
    background-color: #2c3e50 !important;
    color: #ffffff !important;
}

footer h5 {
    color: #ffffff !important;
    font-weight: 600;
}

footer p {
    color: #bdc3c7 !important;
}

footer .list-unstyled li a {
    color: #bdc3c7 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .list-unstyled li a:hover {
    color: #3498db !important;
}

footer .social-links a {
    color: #bdc3c7 !important;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #3498db !important;
}

footer .text-muted {
    color: #bdc3c7 !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-section {
    min-height: 70vh;
}

.min-vh-50 {
    min-height: 50vh;
}

.feature-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.terminal-window {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.code-line {
    margin: 5px 0;
    line-height: 1.4;
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 991px) {
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .dropdown-menu {
        border: 1px solid #e9ecef;
        box-shadow: none;
    }
    
    .skillsmith-logo {
        gap: 10px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .fire-brackets {
        font-size: 28px;
    }
    
    .logo-text .main {
        font-size: 20px;
    }
    
    .logo-text .sub {
        font-size: 9px;
    }
}

@media (max-width: 576px) {
    .skillsmith-logo {
        gap: 8px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .fire-brackets {
        font-size: 24px;
    }
    
    .logo-text .main {
        font-size: 18px;
    }
    
    .logo-text .sub {
        font-size: 8px;
        letter-spacing: 1px;
    }
}

/* ============================================
   Additional UI Enhancements
   ============================================ */
.navbar-profile-pic {
    width: 2em !important;
    height: 2em !important;
    object-fit: cover;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Loading animation for future use */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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