/* STARFLEET Footer Styles */

/* Main Footer Structure */
.site-footer.starfleet-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

/* LCARS Frame */
.footer-lcars-frame {
    position: relative;
    padding: 0;
}

.lcars-bar-horizontal {
    height: 20px;
    background: linear-gradient(90deg, 
        var(--starfleet-gold) 0%, 
        var(--starfleet-blue) 25%, 
        var(--starfleet-teal) 50%, 
        var(--starfleet-gold) 75%, 
        var(--starfleet-blue) 100%);
    position: relative;
    animation: lcars-glow 5s ease-in-out infinite;
}

.lcars-bar-horizontal.top {
    border-radius: 0 0 20px 20px;
}

.lcars-bar-horizontal.bottom {
    border-radius: 20px 20px 0 0;
}

@keyframes lcars-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Footer Main Content */
.footer-main-content {
    padding: 60px 0 40px;
    background: rgba(0, 0, 0, 0.9);
    border-left: 3px solid var(--starfleet-gold);
    border-right: 3px solid var(--starfleet-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Footer Headings */
.footer-heading {
    color: var(--starfleet-gold);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 25px;
    display: flex;
    align-items: center;
}

.heading-decorator {
    position: absolute;
    left: 0;
    width: 15px;
    height: 3px;
    background: var(--starfleet-teal);
    box-shadow: 0 0 10px rgba(68, 170, 153, 0.5);
}

/* Department Info */
.footer-department-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.department-item {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid rgba(81, 71, 155, 0.2);
    transition: all 0.3s ease;
}

.department-item:hover {
    background: rgba(81, 71, 155, 0.1);
    padding-left: 10px;
}

.department-item .rank {
    color: var(--starfleet-teal);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.department-item .name {
    color: var(--starfleet-white);
    font-size: 1rem;
    font-weight: 500;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}


.footer-links a {
    color: var(--starfleet-silver);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

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

/* Support Services */
.footer-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    padding: 12px;
    background: rgba(81, 71, 155, 0.05);
    border-left: 3px solid var(--starfleet-blue);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(81, 71, 155, 0.1);
    border-left-color: var(--starfleet-gold);
}

.service-item h5 {
    color: var(--starfleet-gold);
    font-size: 0.95rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-item p {
    color: var(--starfleet-silver);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Status Bar */
.footer-status-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: linear-gradient(90deg, rgba(81, 71, 155, 0.1) 0%, rgba(210, 184, 135, 0.1) 100%);
    border-radius: 10px;
    border: 1px solid var(--starfleet-blue);
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.status-label {
    color: var(--starfleet-silver);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.status-value {
    color: var(--starfleet-teal);
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
}

.status-value.status-online {
    color: var(--starfleet-green);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-value.status-warning {
    color: var(--starfleet-yellow);
    animation: pulse-warning 2s ease-in-out infinite;
}

.status-value.status-alert {
    color: var(--starfleet-red);
    animation: pulse-alert 1s ease-in-out infinite;
}

.status-value.status-maintenance {
    color: var(--starfleet-silver);
}

.status-value.status-standby {
    color: var(--starfleet-teal);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

/* Footer Bottom */
.footer-bottom {
    background: #000000;
    padding: 30px 0;
    border-top: 2px solid var(--starfleet-gold);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.starfleet-emblem {
    /* animation: rotate-slow 10s linear infinite; */
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer-org-info {
    display: flex;
    flex-direction: column;
}

.org-name {
    color: var(--starfleet-gold);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.org-tagline {
    color: var(--starfleet-silver);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Legal Links */
.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 auto;
}

.footer-legal-links a {
    color: var(--starfleet-silver);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--starfleet-teal);
}

.footer-legal-links .separator {
    color: var(--starfleet-blue);
    margin: 0 5px;
}

/* Copyright */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(81, 71, 155, 0.3);
}

.copyright-main {
    color: var(--starfleet-gold);
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-top: 10px;
    letter-spacing: 0.05em;
        flex: 1;
    text-align: left;
}

.copyright-disclaimer {
    color: var(--starfleet-silver);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
    text-align: center;
}

/* LCARS Decorations */
.footer-lcars-decorations {
    pointer-events: none;
}

.lcars-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid var(--starfleet-gold);
}

.lcars-corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 0 0 0;
}

.lcars-corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 20px 0 0;
}

.lcars-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 20px;
}

.lcars-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 20px 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--starfleet-blue) 0%, var(--starfleet-gold) 100%);
    border: 2px solid var(--starfleet-gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(210, 184, 135, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(210, 184, 135, 0.5);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--starfleet-white);
}

.back-to-top .button-text {
    color: var(--starfleet-white);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
    font-weight: 600;
}

/* System Alert */
.system-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(181, 17, 0, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 2px solid var(--starfleet-red);
    border-radius: 10px;
    padding: 15px 20px;
    z-index: 10000;
    animation: alert-slide-in 0.5s ease;
    box-shadow: 0 10px 30px rgba(181, 17, 0, 0.5);
}

@keyframes alert-slide-in {
    0% {
        transform: translateX(400px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    font-size: 1.5rem;
    color: var(--starfleet-yellow);
    animation: alert-blink 1s ease-in-out infinite;
}

@keyframes alert-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.alert-message {
    flex: 1;
    color: var(--starfleet-white);
    font-size: 0.95rem;
}

.alert-close {
    background: transparent;
    border: none;
    color: var(--starfleet-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.alert-close:hover {
    transform: rotate(90deg);
}

/* Animation for footer visibility */
.site-footer.visible .footer-lcars-frame {
    animation: fade-in-up 1s ease;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-status-bar {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .footer-main-content {
        padding: 40px 20px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .footer-heading {
        font-size: 1rem;
    }
    
    .department-item .name {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-status-bar {
        padding: 15px;
    }
    
    .status-value {
        font-size: 1rem;
    }
}

/* ========================================
   SEE MORE LINK - Footer Campus List
   ======================================== */
.footer-links .see-more-link {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(210, 184, 135, 0.2);
}

.footer-see-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--starfleet-gold);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.footer-see-more:hover {
    color: var(--starfleet-teal);
    transform: translateX(3px);
}

.footer-see-more svg {
    transition: transform 0.3s ease;
}

.footer-see-more:hover svg {
    transform: translateX(3px);
}