/* Nutshell - Bootstrap Enhancements */

:root {
    --gradient-start: #9333ea;
    --gradient-end: #f97316;
}

body {
    max-width: 600px;
    margin: 0 auto;
    background: #f3f4f6;
    padding-bottom: 70px;
}

/* Gradient Navbar */
.navbar-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%) !important;
}

/* Gradient Hero */
.hero-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #dee2e6;
    z-index: 1030;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav .nav {
    display: flex;
    flex-wrap: nowrap !important;
}

.bottom-nav .nav-link {
    flex-direction: column;
    font-size: 0.7rem;
    padding: 0.5rem;
    color: #6c757d;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.bottom-nav .nav-link.active {
    color: #9333ea;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 1rem;
    margin: 0.25rem;
}

.bottom-nav .nav-link span:first-child {
    font-size: 1.4rem;
}

/* Category Cards - 3 Column Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.category-card {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.category-card h6 {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

/* Activity Page Styles */
.activity-card-summary {
    border-radius: 2rem;
    border: 1.5px solid #e8d8f0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.icon-bg-soft {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.recent-activity-item {
    border-radius: 1.25rem;
    border: none;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
    transition: transform 0.2s;
}

.recent-activity-item:hover {
    transform: translateY(-2px);
}

/* Video Card Styles */
.video-card {
    border-radius: 2rem;
    border: none;
    background: #fff;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.08);
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.video-thumb-container {
    position: relative;
    width: 120px;
    height: 120px;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
}

.play-btn-overlay {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #9333ea;
    font-size: 1rem;
    margin-left: 20px;
}

.category-badge-video {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 15px;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.badge-science {
    background-color: #e0f2fe;
    color: #0ea5e9;
}

.badge-geography {
    background-color: #dcfce7;
    color: #22c55e;
}

.badge-video {
    background-color: rgba(80, 95, 80, 0.1);
    color: #374151;
}

.badge-ebook {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.badge-article {
    background-color: #ffedd5;
    color: #9a3412;
}

.video-title {
    color: #2e1065;
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 10px;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 10px;
}

.action-btn-circle {
    width: 35px;
    height: 35px;
    background: #f5f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9333ea;
    margin-top: 10px;
}