/*
Theme Name: Aeroklub Prijedor
Theme URI: https://aeroklubprijedor.com
Description: Custom theme for Aero klub Prijedor with multilingual support, aerodrome data integration, and advanced gallery features
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 7.3
Author: Web Development Team
Author URI: https://aeroklubprijedor.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeroklub
Tags: aviation, sports, multilingual, custom-colors, custom-logo, custom-header, custom-background, featured-images, gallery, blog
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Custom Link Styles */
a {
    color: var(--primary-color, #1e5a96);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--secondary-color, #0d3d66);
}

.entry-content a {
    color: var(--primary-color, #1e5a96);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.entry-content a:hover {
    color: var(--secondary-color, #0d3d66);
    border-bottom-color: var(--primary-color, #1e5a96);
}

.entry-content a:active {
    color: #0a2540;
}

/* Button-style links */
.button-link,
.wp-block-button__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #1e5a96), var(--secondary-color, #0d3d66));
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.button-link:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, var(--secondary-color, #0d3d66), #0a2540);
    color: #fff !important;
}

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

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color, #1e5a96), var(--secondary-color, #0d3d66));
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-height: 80px;
    width: auto;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.main-navigation a:active {
    transform: translateY(0);
}

/* Dropdown/Submenu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color, #0d3d66);
    min-width: 220px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 4px;
    z-index: 1000;
}

.main-navigation ul li:hover > ul {
    display: block;
}

.main-navigation ul ul li {
    display: block;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.main-navigation ul ul a:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateX(5px);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.language-switcher a:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.language-switcher a.active {
    background-color: #fff;
    color: var(--primary-color, #0066cc);
    border-color: #fff;
}

.language-switcher .flag-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.language-switcher .lang-code {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Aerodrome Info Widget */
.aerodrome-widget {
    background: linear-gradient(135deg, var(--primary-color, #1e5a96) 0%, var(--secondary-color, #0d3d66) 50%, #0a2540 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.aerodrome-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="2"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.aerodrome-widget h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 0.5rem;
}

.aerodrome-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.data-item {
    background-color: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 4px;
}

.data-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.data-value {
    font-size: 1.25rem;
    font-weight: bold;
}

.metar-display {
    background-color: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(30,90,150,0.15);
    border-color: var(--primary-color, #1e5a96);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color, #1e5a96);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color, #1e5a96);
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.read-more:hover {
    background: var(--primary-color, #1e5a96);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.captcha-container {
    margin: 1.5rem 0;
}

.captcha-image {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.captcha-code {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.5rem;
    color: var(--primary-color, #0066cc);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    user-select: none;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color, #1e5a96), var(--secondary-color, #0d3d66));
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, var(--secondary-color, #0d3d66), #0a2540);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
}

.contact-info {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.masked-contact {
    cursor: pointer;
    position: relative;
}

.masked-contact img {
    height: 24px;
    vertical-align: middle;
}

.masked-contact:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #333;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-color, #1e5a96);
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color, #1e5a96);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color, #1e5a96), transparent);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color, #1e5a96);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-2 { padding: 2rem 0; }
