/**
 * SkillSnap - Custom CSS Styles
 */

:root {
    /* Primary Colors */
    --primary-color: #6c3;
        --primary-gradient-start: #09f;
        --primary-gradient-end: #09f;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #00A0A0 0%, #008080 100%);
    --secondary-gradient: linear-gradient(135deg, #A064DC 0%, #8A4FD0 100%);
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f1d4 100%);
    min-height: 100vh;
    padding: 8px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer {
    padding:20px;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.main-container {
    padding:0px;
}

.main-container-title {
    padding:0px;
    background-color: white;
}

.bg {
    animation:slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);
    bottom:0;
    left:-50%;
    opacity:.5;
    position:fixed;
    right:-50%;
    top:0;
    z-index:-1;
  }
  
  .bg2 {
    animation-direction:alternate-reverse;
    animation-duration:4s;
  }
  
  .bg3 {
    animation-duration:5s;
  }
  
  .content {
    background-color:rgba(255,255,255,.8);
    border-radius:.25em;
    box-shadow:0 0 .25em rgba(0,0,0,.25);
    box-sizing:border-box;
    left:50%;
    padding:10vmin;
    position:fixed;
    text-align:center;
    top:50%;
    transform:translate(-50%, -50%);
  }
  
 
  @keyframes slide {
    0% {
      transform:translateX(-25%);
    }
    100% {
      transform:translateX(25%);
    }
  }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

.header {
    text-align: center;
    padding: 2rem;
    z-index: 10;
    position: relative;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: bold;
    /* background: linear-gradient(45deg, #006b3c, #2980b9, #8a2be2, #9966cc); */
    background: linear-gradient(-60deg, #6c3 50%, #09f 50%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 500;
    color: #008080;
    margin-top: 1rem;
    line-height: 1.4;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    .quote-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    .quote-text {
        font-size: 1.1rem;
    }
}

/* Glow effect on hover */
.gradient-text:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}




@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}


.container-body {
    padding: 20px;
    
}

.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #008080;
    border-color: #008080;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #8A4FD0;
    border-color: #8A4FD0;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    color: #555;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    padding: 5rem 0;
}

/* Feature Icons */
.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.topic-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Cards */
.card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}




.banner-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.banner-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-info {
    padding: 20px;
}

.banner-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
}



/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: 50rem;
}

/* Progress Bars */
.progress {
    border-radius: 50rem;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--primary);
}

/* Level Badge */
.level-badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Dashboard */
.dashboard-stat {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dashboard-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Leaderboard */
.leaderboard-list {
    max-height: 400px;
    overflow-y: auto;
}

/* Module Content */
.module-content {
    padding: 2rem;
    border-radius: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.module-navigation {
    position: sticky;
    top: 1rem;
}

/* Quiz */
.quiz-option {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--primary);
    background-color: rgba(0, 160, 160, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background-color: rgba(0, 160, 160, 0.1);
}

.quiz-option.correct {
    border-color: var(--success);
    background-color: rgba(40, 167, 69, 0.1);
}

.quiz-option.incorrect {
    border-color: var(--danger);
    background-color: rgba(220, 53, 69, 0.1);
}

/* Footer */
footer a {
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 1;
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-slideUp {
    animation: slideUp 0.5s ease-in-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .feature-icon, .topic-icon {
        width: 50px;
        height: 50px;
    }
}

/* Dark Mode (for future implementation) */
.dark-mode {
    --primary: #00C0C0;
    --secondary: #B074EC;
    background-color: #222;
    color: #f0f0f0;
}

.dark-mode .card,
.dark-mode .module-content,
.dark-mode .dashboard-stat {
    background-color: #333;
    color: #f0f0f0;
}

.dark-mode .text-muted {
    color: #aaa !important;
}

.dark-mode .navbar,
.dark-mode .bg-white {
    background-color: #222 !important;
}

.dark-mode .border {
    border-color: #444 !important;
}
