﻿/* ===== Layout Styles ===== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

#navbar-container {
    flex-shrink: 0;
    width: 100%;
}

#content-container {
    flex: 1;
    overflow-y: auto;
}

#footer-container {
    flex-shrink: 0;
    margin-top: auto;
}

/* ===== Font Styles ===== */
* {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    animation: fadeInDown 1s ease-out;
}

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

.hero-section h1 {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

/* ===== Main Content ===== */
.content-section {
    padding: 80px 20px;
    position: relative;
    z-index: 10;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive grid */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== Tool Card ===== */
.tool-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    transition: left 0.5s ease;
    z-index: 0;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.25);
}

.tool-card-content {
    position: relative;
    z-index: 1;
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.tool-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.tool-card p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.tool-card-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tool-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.tool-card-btn:active {
    transform: translateY(-1px);
}

/* ===== Form Elements ===== */
input[type="date"],
input[type="text"],
input[type="number"],
select {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

input[type="date"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
    background-color: #f9f9ff !important;
}

input[type="date"]::placeholder,
input[type="text"]:placeholder,
input[type="number"]:placeholder {
    color: #999999 !important;
}

/* Date Picker Button */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #667eea !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    margin-right: 4px !important;
    padding: 4px 8px !important;
    filter: invert(1) !important;
}

input[type="date"]::-webkit-outer-spin-button,
input[type="date"]::-webkit-inner-spin-button {
    display: none !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

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

    .tool-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .hero-section p {
        font-size: 0.85rem;
    }

    .content-section {
        padding: 50px 15px;
    }

    .tool-card {
        padding: 30px 20px;
    }

    .tool-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .tool-card h3 {
        font-size: 1.3rem;
    }

    .tool-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: auto;
        padding: 20px 15px;
    }

    .hero-section h1 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .hero-section p {
        font-size: 0.8rem;
    }

    .content-section {
        padding: 30px 10px;
    }

    .tool-card {
        padding: 25px 15px;
        border-radius: 15px;
    }

    .tool-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .tool-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .tool-card p {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .tool-card-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Footer ===== */
.footer-section {
    background: rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

/* ===== METAR & TAF Ticker ===== */
.ticker-container {
    position: relative;
    z-index: 20;
    background: linear-gradient(90deg, rgba(30, 58, 138, 1) 0%, rgba(37, 99, 235, 1) 50%, rgba(30, 58, 138, 1) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ticker-container::before {
    content: '🔴 LIVE';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border-radius: 4px;
    animation: pulse-red 1.5s infinite;
    z-index: 10;
}

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

.ticker-wrapper {
    display: flex;
    animation: scroll 60s linear infinite;
    margin-left: 70px;
    padding-right: 12px;
}

.ticker-wrapper:hover {
    animation-play-state: paused;
    cursor: pointer;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    transform: scale(1.05);
}

.ticker-item .text-2xl {
    animation: float-emoji 2s ease-in-out infinite;
}

@keyframes float-emoji {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

/* Responsive Ticker */
@media (max-width: 768px) {
    .ticker-wrapper {
        animation: scroll 45s linear infinite;
        margin-left: 60px;
    }
    
    .ticker-item {
        padding: 0 6px;
        gap: 8px;
    }
    
    .ticker-item span:first-child {
        font-size: 1.5rem;
    }
    
    .ticker-item span:nth-child(2) {
        font-size: 0.8rem;
    }
    
    .ticker-container::before {
        font-size: 0.65rem;
        left: 8px;
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .ticker-wrapper {
        animation: scroll 35s linear infinite;
        margin-left: 50px;
    }
    
    .ticker-item {
        padding: 0 4px;
        gap: 6px;
    }
    
    .ticker-item span:first-child {
        font-size: 1.2rem;
    }
    
    .ticker-item span:nth-child(2) {
        font-size: 0.75rem;
    }
    
    .ticker-container::before {
        font-size: 0.6rem;
        left: 6px;
        padding: 2px 4px;
    }
}

