/* Stiluri pentru frontend - Tema colorată pentru școală gimnazială */

:root {
    --primary-color: #4A90E2; /* Albastru prietenos */
    --secondary-color: #7B68EE; /* Violet */
    --success-color: #50C878; /* Verde deschis */
    --info-color: #17A2B8; /* Turcoaz */
    --warning-color: #FFB347; /* Portocaliu deschis */
    --danger-color: #FF6B6B; /* Roșu deschis */
    --accent-1: #FF6B9D; /* Roz */
    --accent-2: #C77DFF; /* Mov */
    --accent-3: #4ECDC4; /* Turcoaz deschis */
    --accent-4: #FFE66D; /* Galben */
    --bg-light: #F8F9FA;
    --text-dark: #2C3E50;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

/* Hero Section - Gradient colorat și vibrant */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(199, 125, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(78, 205, 196, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Cards - Design colorat și modern */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Feature Icons - Animații colorate și centrate */
.feature-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.feature-icon {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.card-hover-effect:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Culori diferite pentru fiecare icon */
.feature-icon.bg-primary {
    background: linear-gradient(135deg, #4A90E2, #357ABD) !important;
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, #50C878, #3DA85C) !important;
}

.feature-icon.bg-info {
    background: linear-gradient(135deg, #17A2B8, #138496) !important;
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, #FFB347, #FF9500) !important;
}

/* Section Titles - Colorate */
.section-title {
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-1));
    border-radius: 2px;
}

/* Navbar - Colorat, modern și responsive */
.custom-navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-1)) 1;
    padding: 0.6rem 0;
    position: relative;
    width: 100%;
}

/* Navbar toggler personalizat */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s;
}

.navbar-toggler:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
}

/* Aliniază navbar-ul cu conținutul - folosește exact aceleași dimensiuni ca Bootstrap */
.custom-navbar .container {
    /* Dimensiunile vor fi setate de media queries de mai jos pentru consistență */
}

.navbar-nav {
    max-width: 100%;
    overflow: visible;
}

/* Flexbox pentru distribuirea uniformă a meniului */
.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

/* Asigură că meniul se încadrează în container */
@media (min-width: 992px) {
    .navbar-nav {
        max-width: calc(100% - 300px); /* Lasă spațiu pentru brand */
    }
}

/* Meniu collapse responsive */
.navbar-collapse {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border: 1px solid rgba(74, 144, 226, 0.2);
    }
    
    .navbar-nav {
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .custom-nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin: 0.2rem 0;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(74, 144, 226, 0.1);
        transition: all 0.3s;
    }
    
    .custom-nav-link:hover {
        background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
        border-color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .nav-icon-wrapper {
        width: 32px;
        height: 32px;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    
    .custom-nav-link i {
        color: white;
        font-size: 1rem;
    }
    
    .nav-text {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
    }
}

/* Brand/Titlu site - Restilizat și compact */
.custom-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
}

.custom-brand:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(123, 104, 238, 0.05));
    transform: translateX(3px);
}

.brand-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(74, 144, 226, 0.3);
    transition: all 0.3s;
}

.custom-brand:hover .brand-icon-wrapper {
    transform: rotate(3deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.brand-icon-wrapper i {
    font-size: 1.6rem;
    color: white;
}

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

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1px;
}

/* Meniu - Optimizat pentru afișarea completă a textului */
.navbar-nav {
    gap: 0.2rem;
    flex: 0 1 auto;
    min-width: 0;
}

.custom-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    padding: 0.45rem 0.7rem !important;
    transition: all 0.3s;
    border-radius: 6px;
    margin: 0 0.05rem;
    position: relative;
    color: var(--text-dark) !important;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
    border-radius: 5px;
    transition: all 0.3s;
}

.custom-nav-link i {
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.custom-nav-link:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.custom-nav-link:hover .nav-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.1) rotate(5deg);
}

.custom-nav-link:hover i {
    color: white;
    transform: scale(1.1);
}

.custom-nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.custom-nav-link.active .nav-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
}

.custom-nav-link.active i {
    color: white;
}

.nav-text {
    font-weight: 600;
    white-space: nowrap;
    display: block;
}

/* Responsive pentru meniu desktop - păstrează textul cât mai mult posibil */
@media (min-width: 992px) and (max-width: 1300px) {
    .custom-nav-link {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem !important;
        gap: 0.3rem;
    }
    
    .nav-icon-wrapper {
        width: 22px;
        height: 22px;
    }
    
    .custom-nav-link i {
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) and (max-width: 1100px) {
    .custom-nav-link {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem !important;
        gap: 0.25rem;
    }
    
    .nav-icon-wrapper {
        width: 20px;
        height: 20px;
    }
    
    .custom-nav-link i {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) and (max-width: 1050px) {
    .nav-text {
        display: none;
    }
    
    .custom-nav-link {
        gap: 0;
        padding: 0.4rem !important;
        justify-content: center;
        min-width: 36px;
    }
    
    .nav-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .custom-nav-link i {
        font-size: 0.85rem;
    }
}

/* Responsive pentru navbar - tablet și mobile */
@media (max-width: 991.98px) {
    .custom-navbar .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .navbar-nav {
        max-width: 100%;
        width: 100%;
    }
    
    .custom-brand {
        gap: 0.6rem;
        flex: 1 1 auto;
    }
    
    .brand-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .brand-icon-wrapper i {
        font-size: 1.3rem;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
    }
    
    /* Navbar toggler poziționare */
    .navbar-toggler {
        margin-left: auto;
        order: 2;
    }
}

@media (max-width: 768px) {
    .custom-navbar {
        padding: 0.5rem 0;
    }
    
    .brand-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .brand-icon-wrapper i {
        font-size: 1.1rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
    }
    
    .custom-nav-link {
        padding: 0.6rem 0.8rem !important;
        font-size: 0.85rem;
    }
    
    .nav-icon-wrapper {
        width: 28px;
        height: 28px;
    }
    
    .custom-nav-link i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .custom-navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Asigură alinierea perfectă cu toate containerele Bootstrap */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Elimină orice spațiu suplimentar din navbar */
.custom-navbar {
    margin: 0;
    border-radius: 0;
}

.custom-navbar .container {
    position: relative;
}

/* Breakpoint-uri Bootstrap pentru consistență */
@media (min-width: 576px) {
    .custom-navbar .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .custom-navbar .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .custom-navbar .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .custom-navbar .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .custom-navbar .container {
        max-width: 1320px;
    }
    
    .brand-title {
        font-size: 0.9rem;
    }
    
    .brand-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .brand-icon-wrapper i {
        font-size: 1rem;
    }
    
    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }
    
    .custom-nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.8rem;
    }
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Page Content */
.page-content {
    line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.page-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* News Content */
.news-content {
    line-height: 1.8;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Main content wrapper pentru sticky footer */
main, .main-content {
    flex: 1 0 auto;
}

/* Footer - Colorat */
footer {
    flex-shrink: 0;
    margin-top: auto;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%) !important;
    border-top: 4px solid var(--primary-color);
}

footer a {
    transition: all 0.3s;
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--accent-3) !important;
    transform: translateX(5px);
}

footer h5 {
    color: var(--accent-3);
    font-weight: 600;
}

/* Buttons - Colorate și moderne */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    padding: 0.6rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #3DA85C);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(80, 200, 120, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color), #138496);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #FF9500);
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Alerts - Colorate */
.alert {
    border-radius: 10px;
    border: none;
    border-left: 4px solid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    border-left-color: var(--info-color);
    color: #0c5460;
}

.alert-success {
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.1), rgba(80, 200, 120, 0.05));
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.1), rgba(255, 179, 71, 0.05));
    border-left-color: var(--warning-color);
    color: #856404;
}

/* Pagination - Colorată */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    color: var(--primary-color);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(123, 104, 238, 0.1));
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/* Animații și efecte speciale */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-section .bi-mortarboard-fill {
    animation: float 3s ease-in-out infinite;
}

/* Badge-uri colorate */
.badge {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color), #3DA85C);
}

/* News cards - Design colorat */
.news-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.news-card:hover {
    border-left-width: 8px;
    border-left-color: var(--accent-1);
    transform: translateX(5px);
}

/* Butoane de acțiune colorate */
.btn-action {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-action:hover {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

/* Efecte de hover pentru carduri */
.card-hover-effect {
    position: relative;
    overflow: hidden;
}

.card-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.card-hover-effect:hover::after {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Gallery - Design colorat și modern */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 3px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Documents - Design colorat */
.document-list {
    list-style: none;
    padding: 0;
}

.document-item {
    padding: 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s;
    background: white;
    position: relative;
    overflow: hidden;
}

.document-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s;
}

.document-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
    transform: translateX(5px);
}

.document-item:hover::before {
    transform: scaleY(1);
}


