/**
 * Styly pro dashboard (frontend/dashboard.php)
 * Design inspirovaný Adiktio.cz
 */

body {
    background: linear-gradient(135deg, #e8eef5 0%, #f5f7fa 50%, #fef5ed 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animované pozadí s particles */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: float-up infinite ease-in-out;
    bottom: 0;
}

/* Různé velikosti a barvy particles - 50 kusů - pomalé */
.particle:nth-child(1) { width: 60px; height: 60px; background: radial-gradient(circle, rgba(28, 38, 74, 0.1) 0%, rgba(28, 38, 74, 0.02) 100%); left: 2%; animation-delay: 0s; animation-duration: 28s; }
.particle:nth-child(2) { width: 45px; height: 45px; background: radial-gradient(circle, rgba(247, 147, 30, 0.12) 0%, rgba(247, 147, 30, 0.03) 100%); left: 6%; animation-delay: 2s; animation-duration: 24s; }
.particle:nth-child(3) { width: 70px; height: 70px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 10%; animation-delay: 4s; animation-duration: 30s; }
.particle:nth-child(4) { width: 55px; height: 55px; background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, rgba(247, 147, 30, 0.02) 100%); left: 14%; animation-delay: 1s; animation-duration: 26s; }
.particle:nth-child(5) { width: 65px; height: 65px; background: radial-gradient(circle, rgba(28, 38, 74, 0.09) 0%, rgba(28, 38, 74, 0.02) 100%); left: 18%; animation-delay: 3s; animation-duration: 25s; }
.particle:nth-child(6) { width: 50px; height: 50px; background: radial-gradient(circle, rgba(247, 147, 30, 0.11) 0%, rgba(247, 147, 30, 0.03) 100%); left: 22%; animation-delay: 5s; animation-duration: 27s; }
.particle:nth-child(7) { width: 75px; height: 75px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 26%; animation-delay: 1.5s; animation-duration: 32s; }
.particle:nth-child(8) { width: 48px; height: 48px; background: radial-gradient(circle, rgba(247, 147, 30, 0.13) 0%, rgba(247, 147, 30, 0.03) 100%); left: 30%; animation-delay: 3.5s; animation-duration: 23s; }
.particle:nth-child(9) { width: 62px; height: 62px; background: radial-gradient(circle, rgba(28, 38, 74, 0.1) 0%, rgba(28, 38, 74, 0.02) 100%); left: 34%; animation-delay: 5.5s; animation-duration: 29s; }
.particle:nth-child(10) { width: 58px; height: 58px; background: radial-gradient(circle, rgba(247, 147, 30, 0.09) 0%, rgba(247, 147, 30, 0.02) 100%); left: 38%; animation-delay: 0.5s; animation-duration: 31s; }
.particle:nth-child(11) { width: 68px; height: 68px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 42%; animation-delay: 2.5s; animation-duration: 26s; }
.particle:nth-child(12) { width: 52px; height: 52px; background: radial-gradient(circle, rgba(247, 147, 30, 0.12) 0%, rgba(247, 147, 30, 0.03) 100%); left: 46%; animation-delay: 4.5s; animation-duration: 28s; }
.particle:nth-child(13) { width: 72px; height: 72px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 50%; animation-delay: 1.2s; animation-duration: 33s; }
.particle:nth-child(14) { width: 46px; height: 46px; background: radial-gradient(circle, rgba(247, 147, 30, 0.14) 0%, rgba(247, 147, 30, 0.03) 100%); left: 54%; animation-delay: 3.2s; animation-duration: 24s; }
.particle:nth-child(15) { width: 64px; height: 64px; background: radial-gradient(circle, rgba(28, 38, 74, 0.09) 0%, rgba(28, 38, 74, 0.02) 100%); left: 58%; animation-delay: 5.2s; animation-duration: 30s; }
.particle:nth-child(16) { width: 56px; height: 56px; background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, rgba(247, 147, 30, 0.02) 100%); left: 62%; animation-delay: 0.8s; animation-duration: 27s; }
.particle:nth-child(17) { width: 66px; height: 66px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 66%; animation-delay: 2.8s; animation-duration: 25s; }
.particle:nth-child(18) { width: 54px; height: 54px; background: radial-gradient(circle, rgba(247, 147, 30, 0.11) 0%, rgba(247, 147, 30, 0.03) 100%); left: 70%; animation-delay: 4.8s; animation-duration: 29s; }
.particle:nth-child(19) { width: 74px; height: 74px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 74%; animation-delay: 1.4s; animation-duration: 34s; }
.particle:nth-child(20) { width: 49px; height: 49px; background: radial-gradient(circle, rgba(247, 147, 30, 0.13) 0%, rgba(247, 147, 30, 0.03) 100%); left: 78%; animation-delay: 3.4s; animation-duration: 23s; }
.particle:nth-child(21) { width: 61px; height: 61px; background: radial-gradient(circle, rgba(28, 38, 74, 0.1) 0%, rgba(28, 38, 74, 0.02) 100%); left: 82%; animation-delay: 5.4s; animation-duration: 28s; }
.particle:nth-child(22) { width: 57px; height: 57px; background: radial-gradient(circle, rgba(247, 147, 30, 0.09) 0%, rgba(247, 147, 30, 0.02) 100%); left: 86%; animation-delay: 0.4s; animation-duration: 32s; }
.particle:nth-child(23) { width: 67px; height: 67px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 90%; animation-delay: 2.4s; animation-duration: 26s; }
.particle:nth-child(24) { width: 51px; height: 51px; background: radial-gradient(circle, rgba(247, 147, 30, 0.12) 0%, rgba(247, 147, 30, 0.03) 100%); left: 94%; animation-delay: 4.4s; animation-duration: 27s; }
.particle:nth-child(25) { width: 71px; height: 71px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 98%; animation-delay: 1.8s; animation-duration: 31s; }
.particle:nth-child(26) { width: 47px; height: 47px; background: radial-gradient(circle, rgba(247, 147, 30, 0.14) 0%, rgba(247, 147, 30, 0.03) 100%); left: 3%; animation-delay: 3.8s; animation-duration: 24s; }
.particle:nth-child(27) { width: 63px; height: 63px; background: radial-gradient(circle, rgba(28, 38, 74, 0.09) 0%, rgba(28, 38, 74, 0.02) 100%); left: 7%; animation-delay: 5.8s; animation-duration: 29s; }
.particle:nth-child(28) { width: 59px; height: 59px; background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, rgba(247, 147, 30, 0.02) 100%); left: 11%; animation-delay: 0.2s; animation-duration: 30s; }
.particle:nth-child(29) { width: 69px; height: 69px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 15%; animation-delay: 2.2s; animation-duration: 25s; }
.particle:nth-child(30) { width: 53px; height: 53px; background: radial-gradient(circle, rgba(247, 147, 30, 0.11) 0%, rgba(247, 147, 30, 0.03) 100%); left: 19%; animation-delay: 4.2s; animation-duration: 28s; }
.particle:nth-child(31) { width: 73px; height: 73px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 23%; animation-delay: 1.5s; animation-duration: 33s; }
.particle:nth-child(32) { width: 48px; height: 48px; background: radial-gradient(circle, rgba(247, 147, 30, 0.13) 0%, rgba(247, 147, 30, 0.03) 100%); left: 27%; animation-delay: 3.5s; animation-duration: 23s; }
.particle:nth-child(33) { width: 62px; height: 62px; background: radial-gradient(circle, rgba(28, 38, 74, 0.1) 0%, rgba(28, 38, 74, 0.02) 100%); left: 31%; animation-delay: 5.5s; animation-duration: 27s; }
.particle:nth-child(34) { width: 58px; height: 58px; background: radial-gradient(circle, rgba(247, 147, 30, 0.09) 0%, rgba(247, 147, 30, 0.02) 100%); left: 35%; animation-delay: 0.7s; animation-duration: 31s; }
.particle:nth-child(35) { width: 68px; height: 68px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 39%; animation-delay: 2.7s; animation-duration: 26s; }
.particle:nth-child(36) { width: 52px; height: 52px; background: radial-gradient(circle, rgba(247, 147, 30, 0.12) 0%, rgba(247, 147, 30, 0.03) 100%); left: 43%; animation-delay: 4.7s; animation-duration: 29s; }
.particle:nth-child(37) { width: 72px; height: 72px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 47%; animation-delay: 1.3s; animation-duration: 34s; }
.particle:nth-child(38) { width: 46px; height: 46px; background: radial-gradient(circle, rgba(247, 147, 30, 0.14) 0%, rgba(247, 147, 30, 0.03) 100%); left: 51%; animation-delay: 3.3s; animation-duration: 24s; }
.particle:nth-child(39) { width: 64px; height: 64px; background: radial-gradient(circle, rgba(28, 38, 74, 0.09) 0%, rgba(28, 38, 74, 0.02) 100%); left: 55%; animation-delay: 5.3s; animation-duration: 28s; }
.particle:nth-child(40) { width: 56px; height: 56px; background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, rgba(247, 147, 30, 0.02) 100%); left: 59%; animation-delay: 0.9s; animation-duration: 30s; }
.particle:nth-child(41) { width: 66px; height: 66px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 63%; animation-delay: 2.9s; animation-duration: 25s; }
.particle:nth-child(42) { width: 54px; height: 54px; background: radial-gradient(circle, rgba(247, 147, 30, 0.11) 0%, rgba(247, 147, 30, 0.03) 100%); left: 67%; animation-delay: 4.9s; animation-duration: 27s; }
.particle:nth-child(43) { width: 74px; height: 74px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 71%; animation-delay: 1.7s; animation-duration: 32s; }
.particle:nth-child(44) { width: 49px; height: 49px; background: radial-gradient(circle, rgba(247, 147, 30, 0.13) 0%, rgba(247, 147, 30, 0.03) 100%); left: 75%; animation-delay: 3.7s; animation-duration: 23s; }
.particle:nth-child(45) { width: 61px; height: 61px; background: radial-gradient(circle, rgba(28, 38, 74, 0.1) 0%, rgba(28, 38, 74, 0.02) 100%); left: 79%; animation-delay: 5.7s; animation-duration: 29s; }
.particle:nth-child(46) { width: 57px; height: 57px; background: radial-gradient(circle, rgba(247, 147, 30, 0.09) 0%, rgba(247, 147, 30, 0.02) 100%); left: 83%; animation-delay: 0.5s; animation-duration: 31s; }
.particle:nth-child(47) { width: 67px; height: 67px; background: radial-gradient(circle, rgba(28, 38, 74, 0.08) 0%, rgba(28, 38, 74, 0.02) 100%); left: 87%; animation-delay: 2.5s; animation-duration: 26s; }
.particle:nth-child(48) { width: 51px; height: 51px; background: radial-gradient(circle, rgba(247, 147, 30, 0.12) 0%, rgba(247, 147, 30, 0.03) 100%); left: 91%; animation-delay: 4.5s; animation-duration: 28s; }
.particle:nth-child(49) { width: 71px; height: 71px; background: radial-gradient(circle, rgba(28, 38, 74, 0.07) 0%, rgba(28, 38, 74, 0.01) 100%); left: 95%; animation-delay: 1.9s; animation-duration: 33s; }
.particle:nth-child(50) { width: 60px; height: 60px; background: radial-gradient(circle, rgba(247, 147, 30, 0.1) 0%, rgba(247, 147, 30, 0.02) 100%); left: 5%; animation-delay: 3.9s; animation-duration: 27s; }

/* Animace plovoucích particles - pomalé a plynulé */
@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    15% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
        transform: translateY(-50vh) translateX(30px) rotate(180deg);
    }
    85% {
        opacity: 0.9;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) translateX(-30px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigační lišta */
.navbar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
    margin-right: 16px;
    letter-spacing: -0.5px;
}

/* Odkazy v navigaci */
.nav-link {
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-secondary);
}

.nav-link.active {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Tlačítko registrace v navigaci */
.btn-register {
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
}

.btn-register:hover {
    background-color: #e68a1a;
    color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

.stats-widget {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.stat-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8eef5;
    transition: all var(--transition-fast);
    flex: 1;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--color-secondary);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #ff9f3a 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon {
    width: 28px;
    height: 28px;
    color: var(--color-white);
}

/* Speciální styl pro obrázek BreakChain - zachová poměr stran */
.stat-icon[src*="BreakChain"] {
    width: auto;
    height: 28px;
    max-width: 100%;
    object-fit: contain;
    transform: rotate(45deg);
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: var(--color-gray);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

/* Footer s informací o přihlášeném uživateli */
.user-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(28, 38, 74, 0.5);
    padding: 8px 12px;
    font-size: 12px;
    z-index: 100;
    transition: color var(--transition-fast);
}

.user-footer:hover {
    color: rgba(28, 38, 74, 0.8);
}

.user-footer strong {
    color: rgba(28, 38, 74, 0.7);
    font-weight: 600;
}

.user-footer:hover strong {
    color: var(--color-primary);
}

/* Hero sekce pro nepřihlášené uživatele */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a2a5a 100%);
    padding: 80px 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-white);
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #e68a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 147, 30, 0.4);
}

/* Specifický styl pro .btn-secondary pouze v hero sekci */
.hero-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.hero-section .btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Uvítací karta */
.welcome-card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
    border-left: 4px solid var(--color-secondary);
}

.welcome-card h2 {
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 28px;
    font-weight: 700;
}

.welcome-card p {
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
}

/* Grid layout pro karty */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Karty funkcí */
.card {
    background: #ffffff;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all var(--transition-normal);
    border-top: 3px solid var(--color-secondary);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
}

.card p {
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card a {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 600;
    text-align: center;
    font-size: 15px;
}

.card a:hover {
    background-color: #e68a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--color-white);
}

/* Sekce s obsahem */
.content-section {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    margin-bottom: 32px;
}

.content-section h2 {
    color: var(--color-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.content-section h3 {
    color: var(--color-primary);
    font-size: 22px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-section p {
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 16px;
}

/* Seznam funkcí */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.feature-list li {
    color: var(--color-gray);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 16px;
    padding-left: 32px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 20px;
}

.feature-list li strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Grid pro články */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

/* Karta článku */
.article-card {
    background: #ffffff;
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--color-secondary);
    transition: all var(--transition-fast);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #d0d0d0;
}

.article-card h3 {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.article-card p {
    color: var(--color-gray);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Responzivní design */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }

    /* Logo - na celou šířku, centrované */
    .nav-brand {
        font-size: 22px;
        margin-right: 0;
        margin-bottom: 6px;
        text-align: center;
        width: 100%;
    }

    /* Nav-left: Logo nahoře, pak 2 odkazy vedle sebe */
    .nav-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .nav-left .nav-brand {
        grid-column: 1 / -1;
    }

    /* Nav-right: 3 odkazy - první 2 vedle sebe, třetí na celou šířku */
    .nav-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .nav-right .nav-link:nth-child(3) {
        grid-column: 1 / -1;
    }

    .nav-link {
        text-align: center;
        padding: 10px 12px;
        font-size: 14px;
    }

    .stats-widget {
        flex-direction: column;
    }

    .stat-item {
        padding: 16px 20px;
    }

    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .stat-icon {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 24px;
    }

    .user-footer {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .container {
        padding: 24px 16px;
    }

    .welcome-card,
    .content-section {
        padding: 24px;
    }

    .welcome-card h2,
    .content-section h2 {
        font-size: 22px;
    }

    .content-section h3 {
        font-size: 20px;
    }

    .grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card,
    .article-card {
        padding: 24px;
    }

    .hero-section {
        padding: 60px 24px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-brand {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .nav-link {
        font-size: 13px;
        padding: 8px 10px;
    }

    .nav-left,
    .nav-right {
        gap: 6px;
    }

    .welcome-card h2,
    .content-section h2 {
        font-size: 20px;
    }

    .content-section h3 {
        font-size: 18px;
    }

    .card h3,
    .article-card h3 {
        font-size: 18px;
    }

    .content-section,
    .welcome-card {
        padding: 20px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn-large {
        width: 100%;
    }
}

