/* Enhanced Footer Styles - Ministry of Culture Design */

.footer {
    background: linear-gradient(135deg, var(--moc-primary-dark) 0%, #0a1f2a 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    margin-top: auto;
    border-top: 2px solid rgba(235, 90, 60, 0.2);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin-right: 280px;
    transition: margin-right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer without sidebar (when user not logged in) */
body:not(:has(.sidebar)) .footer,
.footer-full-width {
    margin-right: 0 !important;
}

/* Watermark Background - Subtle */
.footer::before {
    content: 'Ministry of Culture';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 0;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.3rem;
    pointer-events: none;
    opacity: 0.5;
}

/* Cultural Bars Decoration - 13 colored bars representing regions */
.footer-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.2rem;
    padding: 0 2rem;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.footer-bar {
    background: var(--bar-color);
    width: var(--bar-width);
    height: var(--bar-height);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
    animation: barGrow 1.2s ease-out;
    animation-delay: var(--bar-delay);
    animation-fill-mode: both;
    opacity: 0.7;
}

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        height: var(--bar-height);
        opacity: 0.7;
        transform: scaleY(1);
    }
}

/* 13 Bars with different colors and heights - representing 13 regions - Reduced sizes */
.footer-bar:nth-child(1) {
    --bar-color: #EB5A3C;
    --bar-width: 6px;
    --bar-height: 25px;
    --bar-delay: 0s;
}

.footer-bar:nth-child(2) {
    --bar-color: #B41932;
    --bar-width: 5px;
    --bar-height: 32px;
    --bar-delay: 0.05s;
}

.footer-bar:nth-child(3) {
    --bar-color: #FF9619;
    --bar-width: 5px;
    --bar-height: 20px;
    --bar-delay: 0.1s;
}

.footer-bar:nth-child(4) {
    --bar-color: #6E1946;
    --bar-width: 4px;
    --bar-height: 28px;
    --bar-delay: 0.15s;
}

.footer-bar:nth-child(5) {
    --bar-color: #EB5A3C;
    --bar-width: 6px;
    --bar-height: 22px;
    --bar-delay: 0.2s;
}

.footer-bar:nth-child(6) {
    --bar-color: #FAC39B;
    --bar-width: 5px;
    --bar-height: 30px;
    --bar-delay: 0.25s;
}

.footer-bar:nth-child(7) {
    --bar-color: #91B9B4;
    --bar-width: 5px;
    --bar-height: 18px;
    --bar-delay: 0.3s;
}

.footer-bar:nth-child(8) {
    --bar-color: #B41932;
    --bar-width: 8px;
    --bar-height: 38px;
    --bar-delay: 0.35s;
}

.footer-bar:nth-child(9) {
    --bar-color: #DC3545;
    --bar-width: 5px;
    --bar-height: 26px;
    --bar-delay: 0.4s;
}

.footer-bar:nth-child(10) {
    --bar-color: #91B9B4;
    --bar-width: 4px;
    --bar-height: 24px;
    --bar-delay: 0.45s;
}

.footer-bar:nth-child(11) {
    --bar-color: #FAC39B;
    --bar-width: 5px;
    --bar-height: 22px;
    --bar-delay: 0.5s;
}

.footer-bar:nth-child(12) {
    --bar-color: #EB5A3C;
    --bar-width: 6px;
    --bar-height: 29px;
    --bar-delay: 0.55s;
}

.footer-bar:nth-child(13) {
    --bar-color: #FF9619;
    --bar-width: 5px;
    --bar-height: 25px;
    --bar-delay: 0.6s;
}

.footer .container-fluid {
    position: relative;
    z-index: 1;
}

/* Footer Links Section (Left) */
.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--moc-peach);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--moc-peach);
    transform: translateX(-3px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: scale(1.15);
}

.footer-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
}

/* Footer Text Section (Right) */
.footer-text {
    text-align: right;
    line-height: 1.6;
}

.footer-text .copyright {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.footer-text .ministry-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.footer-text .country {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.footer-text .system-name {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.footer-text .system-name span {
    display: inline;
    margin-left: 0.25rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer::before {
        font-size: 3rem;
        letter-spacing: 0.1rem;
        opacity: 0.3;
    }
    
    .footer-bars {
        height: 40px;
        opacity: 0.5;
    }
    
    .footer-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-text {
        text-align: center;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Enhanced Footer Content */
.footer-content {
    position: relative;
    z-index: 2;
}

