/* ============================================
   METARINFO PAGE - CUSTOM STYLES
   SVXLink Dashboard by SP2ONG
   ============================================ */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes fly {
    0% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(-10px); }
}

/* Container */
.metarinfo-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-in;
}

/* Header */
.metarinfo-header {
    margin-bottom: 30px;
    text-align: center;
    animation: slideDown 0.6s ease-out;
}

.metarinfo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #00aee8;
    text-shadow: 0.5px 0.5px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-radius: 12px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;

}
.metarinfo-title:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transform: translateY(-2px);
}

.metarinfo-title .material-icons {
    font-size: 36px;
    color: #08dc6e;
    animation: fly 3s ease-in-out infinite;
}

/* Info/Warning Boxes */
.info-box,
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    animation: slideUp 0.6s ease-out;
}

.info-box {
    background: rgba(33, 150, 243, 0.15);
    border-left: 4px solid #2196f3;
}

.warning-box {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #ffc107;
}

.info-box .material-icons {
    font-size: 28px;
    color: #2196f3;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-box .material-icons {
    font-size: 28px;
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p,
.warning-box p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.info-box strong,
.warning-box strong {
    color: #08dc6e;
    font-weight: 600;
}

/* External Link */
.external-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #00aee8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #08dc6e;
    text-decoration: underline;
}

.external-link .material-icons {
    font-size: 18px;
}

/* Sections */
.dtmf-section,
.airport-section {
    background: linear-gradient(135deg, #1d2658 0%, #2a3668 100%);
    border-radius: 10px;
    padding: 0;
    margin-bottom: 25px;
    border: 1px solid rgba(8, 220, 110, 0.2);
    animation: slideUp 0.7s ease-out;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #00aee8 0%, #0088bb 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header .material-icons {
    font-size: 24px;
}

.section-content {
    padding: 25px;
}

.section-content p {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* DTMF Code */
.dtmf-code {
    display: inline-block;
    background: linear-gradient(135deg, #08dc6e 0%, #06b85a 100%);
    color: #1d2658;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(8, 220, 110, 0.3);
}

/* Example Text */
.example-text {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(8, 220, 110, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #08dc6e;
}

.example-text .material-icons {
    color: #08dc6e;
    font-size: 24px;
}

/* Airport Grid */
.airport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Airport Item */
.airport-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #2a3668 0%, #3f4c84 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 174, 232, 0.2);
    transition: all 0.3s ease;
}

.airport-item:hover {
    border-color: #00aee8;
    box-shadow: 0 4px 15px rgba(0, 174, 232, 0.3);
    transform: translateY(-3px);
}

/* Airport Code (number) */
.airport-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #08dc6e 0%, #06b85a 100%);
    color: #1d2658;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(8, 220, 110, 0.3);
}

/* Airport Info */
.airport-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.airport-icao {
    color: #00aee8;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.airport-name {
    color: #f3ead3;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
}

/* Access Denied */
.access-denied {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.access-denied img {
    max-width: 400px;
    opacity: 0.8;
    margin-bottom: 20px;
    animation: slideDown 0.6s ease-out;
}

.access-denied-text {
    color: #f3ead3;
    font-size: 18px;
    font-family: 'Roboto', sans-serif;
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media screen and (max-width: 768px) {
    .metarinfo-container {
        padding: 15px;
        margin: 20px auto;
    }

    .metarinfo-header {
        padding: 25px 20px;
    }

    .metarinfo-title {
        font-size: 22px;
        flex-direction: column;
        gap: 10px;
    }

    .metarinfo-title .material-icons {
        font-size: 32px;
    }

    .airport-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .section-header {
        font-size: 16px;
        padding: 12px 15px;
    }

    .section-content {
        padding: 20px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .metarinfo-container {
        padding: 10px;
        margin: 15px auto;
    }

    .metarinfo-header {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .metarinfo-title {
        font-size: 18px;
    }

    .metarinfo-title .material-icons {
        font-size: 28px;
    }

    .info-box,
    .warning-box {
        padding: 15px;
        gap: 12px;
    }

    .info-box .material-icons,
    .warning-box .material-icons {
        font-size: 24px;
    }

    .info-box p,
    .warning-box p {
        font-size: 13px;
    }

    .airport-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .airport-item {
        padding: 12px;
    }

    .airport-code {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .airport-icao {
        font-size: 13px;
    }

    .airport-name {
        font-size: 12px;
    }

    .section-header {
        font-size: 15px;
        padding: 12px 15px;
    }

    .section-header .material-icons {
        font-size: 22px;
    }

    .section-content {
        padding: 15px;
    }

    .section-content p {
        font-size: 13px;
    }

    .dtmf-code {
        font-size: 14px;
        padding: 3px 10px;
    }

    .example-text {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .example-text .material-icons {
        font-size: 22px;
    }

    .external-link {
        display: flex;
        flex-wrap: wrap;
    }

    .access-denied img {
        max-width: 250px;
    }

    .access-denied-text {
        font-size: 16px;
    }
}
