/* Font Face Declaration */
@font-face {
    font-family: 'MontserratARM';
    src: url('../fonts/Montserratarm-Light.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'MontserratARM', 'Montserrat', sans-serif !important;
}

body {
    background-color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

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

/* Header styles */
.header {
    background: url('../images/efesHeader.png') center center / cover no-repeat;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    min-height: 70px;
}

.logo {
    height: 58;
    max-width: 200px;
    object-fit: contain;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    position: relative;
}

.error-container {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: white;
    border-radius: 12px;
}

/* Loading indicator styles */
.loading-container {
    position: absolute;
    top: 0;
    left: 40px;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(241, 97, 58, 0.2);
    border-top: 4px solid #f1613a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.error-icon svg {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.error-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 600;
}

.error-message {
    font-size: 1.1rem;
    color: #959CAA;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 100;
}

/* Firebase status indicator */
.firebase-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffc107;
    animation: blink 1.5s infinite;
}

.status-indicator.connected {
    background-color: #28a745;
    animation: none;
}

.status-indicator.error {
    background-color: #dc3545;
    animation: none;
}

.status-text {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 100;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}


/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .error-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-message {
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 36px;
    }

    .error-title {
        font-size: 1.8rem;
    }

    .firebase-status {
        flex-direction: column;
        gap: 6px;
    }
}

/* Loading state */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff4500;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Footer styles - Full width footer */
.footer {
    background-color: #f8f9fa;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.bottom-footer {
    width: 100%;
}

.bottom-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    color: #959ca9;
}

.language-section {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.language-section.initialized {
    opacity: 1;
    visibility: visible;
}

.language-section:hover {
    background-color: rgba(149, 156, 169, 0.1);
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    vertical-align: middle;
}

.language-text {
    font-size: 16px;
    color: #959ca9;
    font-weight: 100;
    margin: 0 8px;
    min-width: 60px;
    text-align: left;
}

.dropdown-arrow {
    width: 12px;
    height: 7px;
    transition: transform 0.3s ease;
    margin-left: 5px;
}

.language-section.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.language-section.open .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option:first-child {
    border-radius: 4px 4px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 4px 4px;
}

.language-option span {
    font-size: 16px;
    color: #374151;
}

.copyright {
    color: #000;
    font-size: 1rem;
    display: flex;
    font-weight: 100;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-1px);
}

.social-link svg {
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
}

.social-link:hover svg path {
    fill: #374151;
}

/* Responsive footer - Matching UI breakpoints */
@media (max-width: 1200px) {
    .bottom-footer-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .bottom-footer-container {
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .copyright {
        flex-basis: 100%;
        order: 3;
        display: flex;
        width: 100%;
        justify-content: center;
        font-size: 10px;
    }

    .social-icons {
        display: flex;
        gap: 1rem;
        flex-basis: 100%;
        justify-content: center;
        order: 2;
    }
}
