/* HALready Brand Colors */
:root {
    --primary-navy: #002964;
    --accent-orange: #FF5F1F;
    --accent-blue: #6EC1E4;
    --dark-blue: #002760;
    --text-gray: #8D9BAA;
    --light-gray: #f8f9fa;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    color: var(--primary-navy);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background: var(--primary-navy);
    color: var(--white);
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    height: 50px;
    width: auto;
}

.header-project-image {
    height: 60px;
    width: auto;
    margin-left: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.header-info-button {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.header-info-button:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

/* Main Content */
main {
    flex: 1;
    padding: 1.5rem 0;
}


/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 41, 100, 0.15);
    border-color: var(--accent-orange);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.resource-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.resource-icon {
    font-size: 2rem;
}

.resource-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-navy);
    line-height: 1.3;
    word-wrap: break-word;
    flex: 1;
    display: inline;
}

.info-button {
    background: #e5e7eb;
    color: #9ca3af;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.info-button:hover {
    background: #d1d5db;
    opacity: 1;
}

.status-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-badge.online {
    background: #22c55e;
    color: white;
}

.status-badge.slow {
    background: #f59e0b;
    color: white;
}

.status-badge.error {
    background: #ff8800;
    color: white;
}

.status-badge.offline {
    background: #ef4444;
    color: white;
}

.status-badge.unknown {
    background: #9ca3af;
    color: white;
}

.status-badge.na {
    background: #6b7280;
    color: white;
    cursor: default;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-link, .resource-email {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: var(--primary-navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.resource-link:hover {
    background: var(--accent-orange);
    transform: translateX(4px);
}

.resource-link.disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.resource-link.disabled:hover {
    background: #d1d5db;
    transform: none;
}

.resource-email {
    background: var(--accent-blue);
}

.resource-email:hover {
    background: var(--accent-orange);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 41, 100, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 12px 40px rgba(0, 41, 100, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-orange);
}

#modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    padding-right: 2rem;
}

#modal-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .header-project-image {
        order: 4;
        width: 100%;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }
}
