/* =============================================
   GRONEK TRANSPORT - MAIN STYLESHEET
   ============================================= */

:root {
    --primary-color: #d35400;
    --secondary-color: #ff9900;
    --text-color: #2b2b2b;
    --bg-color: #fffaf6;
    --section-bg: #fff3e6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --primary-color: #b03a2e;
    --secondary-color: #ff9900;
    --text-color: #f3f0ec;
    --bg-color: #0f0f0f;
    --section-bg: #1a1210;
    --card-bg: rgba(26, 18, 16, 0.95);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #fffaf6 0%, #ffe8d6 50%, #ffd4b0 100%);
    background-attachment: fixed;
    transition: background-color var(--transition), color var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(211, 84, 0, 0.02) 35px, rgba(211, 84, 0, 0.02) 70px);
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0f0a 50%, #2a1510 100%);
}

[data-theme="dark"] body::before {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 153, 0, 0.03) 35px, rgba(255, 153, 0, 0.03) 70px);
}

main { flex: 1 0 auto; }

/* --- SKIP TO CONTENT --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 700;
    z-index: 10000;
    transition: top 0.3s;
    text-decoration: none;
}
.skip-to-content:focus { top: 0; }

/* --- THEME TOGGLE --- */
#theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all var(--transition);
    margin-left: 1rem;
    flex-shrink: 0;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] #theme-toggle {
    background: rgba(255, 153, 0, 0.15);
    border-color: rgba(255, 153, 0, 0.4);
    color: #ff9900;
}

/* Panel kierowcy nav link */
.nav-panel-link {
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 6px !important;
    padding: 0.4rem 0.8rem !important;
    margin-left: 0.3rem;
}

.nav-panel-link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* --- NAVIGATION --- */
nav {
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.98) 0%, rgba(176, 58, 46, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(255, 153, 0, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after { width: 80%; }
.nav-links a:hover { transform: translateY(-1px); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(211, 84, 0, 0.99) 0%, rgba(176, 58, 46, 0.99) 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    .nav-links.open { right: 0; }
    .nav-links a { padding: 0.8rem 0; font-size: 1.05rem; width: 100%; }
    .nav-links a::after { display: none; }
    #theme-toggle { margin-left: 0; margin-top: 1rem; }
}

/* --- HERO --- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.92) 0%, rgba(176, 58, 46, 0.95) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/picture.jpg') center/cover no-repeat;
    opacity: 0.12;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 12px rgba(0, 0, 0, 0.7));
    transition: transform var(--transition);
}

[data-theme="dark"] .logo {
    filter: drop-shadow(0 0 16px rgba(255, 153, 0, 0.6)) brightness(1.2);
}

.logo:hover { transform: scale(1.08); }

.hero h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px #000, 0 0 8px rgba(255, 153, 0, 0.5);
}

[data-theme="dark"] .hero h1 {
    text-shadow: 0 2px 24px rgba(255, 153, 0, 0.6), 0 0 8px #fff;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Hero CTA Buttons */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

.btn-primary {
    background: var(--secondary-color);
    color: #000;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 153, 0, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    color: white;
    font-size: 1.4rem;
    transition: all var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    color: #222;
    box-shadow: 0 4px 24px rgba(255, 153, 0, 0.5);
    transform: scale(1.12);
}

/* --- MAIN CONTENT --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

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

/* --- SECTIONS --- */
section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform var(--transition), box-shadow var(--transition);
}

section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 153, 0, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* --- OFFER LIST --- */
section ul { list-style: none; padding-left: 0; }

section ul li {
    padding: 0.8rem 0 0.8rem 2.5rem;
    position: relative;
    transition: all var(--transition);
}

section ul li::before {
    content: '\25B6';
    position: absolute;
    left: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.8rem;
    transition: all var(--transition);
}

section ul li:hover { padding-left: 3rem; color: var(--primary-color); }
section ul li:hover::before { left: 1rem; transform: scale(1.2); }

/* --- FEATURES GRID (Dlaczego my) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(135deg, #fffaf6 0%, #ffe8d6 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(211, 84, 0, 0.08);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.98) 0%, rgba(34, 24, 20, 0.98) 100%);
    border-color: rgba(255, 153, 0, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
    transition: transform var(--transition);
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); }

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

[data-theme="dark"] .feature-card h3 { color: var(--secondary-color); }

.feature-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- REQUIREMENTS GRID --- */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.requirement-box {
    background: linear-gradient(135deg, #fffaf6 0%, #ffe8d6 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition);
}

[data-theme="dark"] .requirement-box {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.98) 0%, rgba(34, 24, 20, 0.98) 100%);
    border-left-color: var(--secondary-color);
}

.requirement-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.requirement-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirement-box h3::before {
    content: '\2605';
    color: var(--secondary-color);
    font-size: 1.2rem;
}

[data-theme="dark"] .requirement-box h3 { color: var(--secondary-color); }

.requirement-box ul { list-style: none; padding: 0; }
.requirement-box ul li {
    padding: 0.5rem 0 0.5rem 1.2rem;
    position: relative;
    font-size: 0.95rem;
}
.requirement-box ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* --- FAQ ACCORDION --- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(211, 84, 0, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

[data-theme="dark"] .faq-item {
    background: rgba(26, 18, 16, 0.95);
    border-color: rgba(255, 153, 0, 0.15);
}

.faq-item.open {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: left;
    transition: color var(--transition);
}

.faq-question span { flex: 1; }

.faq-question i {
    color: var(--secondary-color);
    transition: transform var(--transition);
    font-size: 0.9rem;
    margin-left: 1rem;
}

.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--primary-color); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.7;
    opacity: 0.9;
}

/* --- COMPANY CARD --- */
.company-card {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 246, 0.95) 100%);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(211, 84, 0, 0.1);
    transition: all var(--transition);
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(211, 84, 0, 0.3);
}

[data-theme="dark"] .company-card {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(26, 18, 16, 0.95) 100%);
    border-color: rgba(255, 153, 0, 0.2);
}

.company-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.company-info h3 {
    margin: 0 0 0.4rem 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

[data-theme="dark"] .company-info h3 { color: var(--secondary-color); }

.company-info .flag { width: 20px; height: auto; }

.company-meta { color: #666; font-size: 0.95rem; margin-bottom: 0.6rem; }
[data-theme="dark"] .company-meta { color: #999; }

.company-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.6rem 0;
}

.company-links a {
    display: inline-block;
    margin-right: 0.8rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(211, 84, 0, 0.3);
}

.company-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(211, 84, 0, 0.5);
}

.company-links a i { margin-right: 0.4rem; }

@media (max-width: 900px) {
    .company-card { grid-template-columns: 1fr; }
}

/* --- RECRUITMENT --- */
.about-graphic img,
.recruitment-graphic img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* --- REVIEWS --- */
.add-review {
    background-color: var(--section-bg);
    padding: 2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    border: 2px solid var(--primary-color);
}

.add-review h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .add-review h3 { color: var(--secondary-color); }

#review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#review-form label { font-weight: 600; color: var(--primary-color); }

#review-form input,
#review-form select,
#review-form textarea {
    padding: 0.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 100%;
}

#review-form textarea { resize: vertical; min-height: 100px; }

#review-form input:focus,
#review-form select:focus,
#review-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(255, 153, 0, 0.3);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(211, 84, 0, 0.4);
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 243, 230, 0.95) 100%);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 6rem;
    color: rgba(211, 84, 0, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .review-card {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.95) 0%, rgba(15, 15, 15, 0.95) 100%);
    border-left-color: var(--secondary-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-header strong { color: var(--primary-color); font-size: 1.1rem; }
.review-rating { font-size: 0.9rem; }

.delete-review-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

.delete-review-btn:hover { background-color: #c0392b; transform: scale(1.1); }

.review-text {
    color: var(--text-color);
    font-style: italic;
    margin: 0.8rem 0;
    line-height: 1.6;
}

.review-date {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.85rem;
}

/* Skeleton loading */
.skeleton-card { padding: 1.5rem; }
.skeleton-line {
    border-radius: 6px;
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 0.8rem;
}
.skeleton-title { height: 20px; width: 40%; }
.skeleton-stars { height: 16px; width: 25%; }
.skeleton-text { height: 14px; width: 100%; }
.skeleton-text.short { width: 60%; }

[data-theme="dark"] .skeleton-line {
    background: linear-gradient(90deg, #2a1c18 25%, #352520 50%, #2a1c18 75%);
    background-size: 200% 100%;
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- BACK TO TOP --- */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(211, 84, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 30px rgba(211, 84, 0, 0.6);
}

/* --- FOOTER --- */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(176, 58, 46, 1) 100%);
    color: white;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-col ul { list-style: none; padding: 0; }

.footer-col ul li { margin-bottom: 0.5rem; }

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a:hover { color: var(--secondary-color); }

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-col ul li a { justify-content: center; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 1rem; }
    .hero-stat-number { font-size: 1.4rem; }
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.gallery-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-md); }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item .delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 2;
}

.gallery-item .gallery-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 2;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .delete-btn, .gallery-item:hover .gallery-delete-btn { opacity: 1; }
.gallery-item .delete-btn:hover, .gallery-item .gallery-delete-btn:hover { background: rgba(220, 53, 69, 0.9); }

/* --- REGULAMIN --- */
.regulation-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--section-bg);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- CALENDAR --- */
.calendar-section { max-width: 1400px; margin: 0 auto; padding: 1rem; }
.calendar-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 0.8rem; }
.calendar-controls button { padding: 0.4rem 0.8rem; border-radius: 6px; border: 1px solid rgba(0, 0, 0, 0.08); background: var(--secondary-color); color: #fff; cursor: pointer; }
.calendar-controls h2 { font-size: 1.8rem; font-weight: 800; }
.calendar-wrap { display: flex; gap: 20px; align-items: flex-start; max-width: 1200px; margin: 0 auto; justify-content: center; }
.calendar-area { flex: 1 1 0; padding: 16px; background: var(--bg-color); border-radius: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; grid-auto-rows: minmax(100px, 1fr); }
.weekday { padding: 6px; text-align: center; font-weight: 700; color: var(--primary-color); }
.day { aspect-ratio: 1/1; background: #fff; padding: 12px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); cursor: pointer; display: flex; flex-direction: column; position: relative; }
.day.today { outline: 2px solid var(--secondary-color); }
.day.blank { background: transparent; box-shadow: none; cursor: default; }
.date-num { position: absolute; top: 8px; right: 10px; font-size: 1.1rem; font-weight: 800; color: var(--primary-color); }
.events-list { margin-top: 36px; display: flex; flex-direction: column; gap: 6px; }
.event-item { background: var(--section-bg); padding: 6px 8px; border-radius: 6px; font-size: 0.9rem; }
#events-sidebar { width: 320px; background: var(--bg-color); padding: 12px; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); }

[data-theme="dark"] .day { background: #0f0f0f; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .event-item { background: #1a1a1a; }

/* --- CONTACT FORM --- */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label { font-weight: 600; color: var(--primary-color); }

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition);
    width: 100%;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
    transform: translateY(-2px);
}

/* --- EMPLOYEES --- */
.employees-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.employees-role {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .employees-role {
    background: rgba(26, 18, 16, 0.95);
    border-color: rgba(255, 153, 0, 0.12);
}

.employees-role h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    padding-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leadership-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .leadership-row { grid-template-columns: 1fr; }
}

.employee-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.employee-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,250,246,0.8) 100%);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(211, 84, 0, 0.08);
    transition: all var(--transition);
}

[data-theme="dark"] .employee-card {
    background: linear-gradient(135deg, rgba(34, 24, 20, 0.8) 0%, rgba(26, 18, 16, 0.8) 100%);
    border-color: rgba(255, 153, 0, 0.1);
}

.employee-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary-color);
}

.employee-card--leader {
    border-left: 4px solid var(--secondary-color);
}

.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.employee-name {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition);
}

[data-theme="dark"] .employee-name { color: var(--secondary-color); }
.employee-name:hover { text-decoration: underline; }

.employee-role-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.badge-owner { background: linear-gradient(135deg, #d35400, #ff9900); color: white; }
.badge-manager { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; }
.badge-representative { background: linear-gradient(135deg, #00b894, #55efc4); color: white; }
.badge-driver { background: linear-gradient(135deg, #0984e3, #74b9ff); color: white; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    main { padding: 1rem; }
    section { padding: 1.5rem; margin-bottom: 2rem; }
    h2 { font-size: 1.6rem; }
    .features-grid { grid-template-columns: 1fr; }
    .requirements-grid { grid-template-columns: 1fr; }
    .reviews-container { grid-template-columns: 1fr; }
    .calendar-wrap { flex-direction: column; }
    #events-sidebar { width: 100%; }
}

/* =============================================
   PARTNERS SECTION
   ============================================= */
.partners-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .partners-section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 153, 0, 0.15);
}

.partners-subtitle {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,250,246,0.6) 100%);
    border: 1px solid rgba(211, 84, 0, 0.08);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .partner-card {
    background: linear-gradient(135deg, rgba(26,18,16,0.8) 0%, rgba(34,24,20,0.8) 100%);
    border-color: rgba(255, 153, 0, 0.12);
}

.partner-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.partner-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.3);
    transition: transform var(--transition);
}

.partner-card:hover .partner-logo-wrap {
    transform: scale(1.1) rotate(5deg);
}

.partner-icon {
    font-size: 1.4rem;
    color: white;
}

.partner-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

[data-theme="dark"] .partner-name { color: var(--secondary-color); }

.partner-desc {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
}

/* =============================================
   TIMELINE - NASZA HISTORIA
   ============================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

[data-theme="dark"] .timeline::before {
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0.5rem 2.5rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 1rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--bg-color);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(255, 153, 0, 0.3);
}

.timeline-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,250,246,0.9) 100%);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(211, 84, 0, 0.1);
    transition: all var(--transition);
}

[data-theme="dark"] .timeline-card {
    background: linear-gradient(135deg, rgba(26,18,16,0.95) 0%, rgba(34,24,20,0.95) 100%);
    border-color: rgba(255, 153, 0, 0.15);
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.timeline-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

[data-theme="dark"] .timeline-card h3 { color: var(--secondary-color); }

.timeline-card p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}

@media (max-width: 900px) {
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding: 0.5rem 0 0.5rem 50px; }
    .timeline-dot { left: 11px !important; right: auto !important; }
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   FLOATING ACTION BUTTON (mobile)
   ============================================= */
.fab-recruit {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 998;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(211, 84, 0, 0.5);
    animation: fab-pulse 2s ease-in-out infinite;
    transition: transform var(--transition);
    border: none;
    cursor: pointer;
}

.fab-recruit i { margin-right: 0.4rem; }

.fab-recruit:hover {
    transform: scale(1.05);
    color: white;
}

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 6px 25px rgba(211, 84, 0, 0.5); }
    50% { box-shadow: 0 6px 35px rgba(255, 153, 0, 0.7); }
}

@media (max-width: 768px) {
    .fab-recruit { display: flex; align-items: center; }
}

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.98) 0%, rgba(42, 21, 16, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(255, 153, 0, 0.3);
    padding: 1.5rem 2rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    color: #e0d5cc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(211, 84, 0, 0.4);
}

.cookie-btn-settings {
    background: transparent;
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* =============================================
   GLASS MORPHISM ENHANCEMENTS
   ============================================= */
.feature-card,
.requirement-box,
.faq-item,
.company-card,
.review-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.7) 0%, rgba(34, 24, 20, 0.7) 100%);
    border: 1px solid rgba(255, 153, 0, 0.12);
}

[data-theme="dark"] .requirement-box {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.7) 0%, rgba(34, 24, 20, 0.7) 100%);
    border-left-color: rgba(255, 153, 0, 0.25);
}

[data-theme="dark"] .faq-item {
    background: rgba(26, 18, 16, 0.7);
    border-color: rgba(255, 153, 0, 0.1);
}

[data-theme="dark"] .company-card {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.7) 0%, rgba(26, 18, 16, 0.7) 100%);
    border-color: rgba(255, 153, 0, 0.12);
}

[data-theme="dark"] .review-card {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.7) 0%, rgba(15, 15, 15, 0.7) 100%);
}

/* =============================================
   HERO ENHANCEMENTS
   ============================================= */
.hero {
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 153, 0, 0.4);
    border-radius: 50%;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.btn-primary.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(255, 153, 0, 0.6), 0 0 60px rgba(255, 153, 0, 0.2); }
}

/* =============================================
   PUBLIC CONVOY CALENDAR
   ============================================= */

.calendar-public-wrap {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.calendar-public-left { flex: 1 1 0; min-width: 0; }
.calendar-public-right { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 1.2rem; }

/* Calendar Controls */
.cal-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.cal-controls h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 200px;
    text-align: center;
}

.cal-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.cal-controls button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

[data-theme="dark"] .cal-controls button {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

[data-theme="dark"] .cal-controls button:hover {
    background: var(--secondary-color);
    color: #000;
}

/* Weekday headers */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.cal-weekday {
    text-align: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--secondary-color);
    padding: 6px 0;
}

/* Calendar grid */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day {
    aspect-ratio: 1 / 1;
    background: var(--card-bg);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 64px;
}

.cal-day.empty {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.cal-day:not(.empty):hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.cal-day.today {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.2);
}

.cal-day.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(211, 84, 0, 0.08), rgba(255, 153, 0, 0.08));
}

[data-theme="dark"] .cal-day {
    background: #1a1210;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cal-day.selected {
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(211, 84, 0, 0.1));
}

.cal-day-num {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-color);
}

.cal-day.has-events .cal-day-num {
    color: var(--primary-color);
}

.cal-day-events {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.cal-event-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 6px rgba(255, 153, 0, 0.5);
}

.cal-event-count {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(255, 153, 0, 0.15);
    border-radius: 10px;
    padding: 0 5px;
}

/* Details panel */
.cal-details-panel {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    display: none;
    border: 1px solid rgba(211, 84, 0, 0.1);
}

.cal-details-panel.active { display: block; }

[data-theme="dark"] .cal-details-panel {
    background: #1a1210;
    border-color: rgba(255, 153, 0, 0.15);
}

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

.cal-details-header h4 {
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .cal-details-header h4 { color: var(--secondary-color); }

#cal-details-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition);
    padding: 0.3rem;
}

#cal-details-close:hover { opacity: 1; }

.cal-details-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-color);
    opacity: 0.6;
}

.cal-details-empty i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }

/* Convoy card in details */
.cal-convoy-card {
    background: var(--section-bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--secondary-color);
}

[data-theme="dark"] .cal-convoy-card {
    background: rgba(34, 24, 20, 0.95);
}

.cal-convoy-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.cal-convoy-top h5 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

[data-theme="dark"] .cal-convoy-top h5 { color: var(--secondary-color); }

.cal-convoy-server {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
}

.cal-convoy-route {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cal-arrow { color: var(--secondary-color); font-weight: 800; }

.cal-convoy-times {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.cal-convoy-times strong { color: var(--primary-color); }

.cal-convoy-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.cal-convoy-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.cal-link.discord { background: rgba(88, 101, 242, 0.15); color: #5865F2; }
.cal-link.map { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.cal-link.tmp { background: rgba(255, 153, 0, 0.15); color: var(--secondary-color); }

.cal-link:hover { transform: translateY(-2px); filter: brightness(0.9); }

/* Upcoming panel */
.cal-upcoming-panel {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(211, 84, 0, 0.08);
}

[data-theme="dark"] .cal-upcoming-panel {
    background: #1a1210;
    border-color: rgba(255, 153, 0, 0.15);
}

.cal-upcoming-panel h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .cal-upcoming-panel h4 { color: var(--secondary-color); }

.cal-upcoming-empty {
    color: var(--text-color);
    opacity: 0.6;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

.cal-upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 0.5rem;
}

.cal-upcoming-item:hover {
    background: var(--section-bg);
    transform: translateX(4px);
}

.cal-upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    padding: 0.3rem 0.5rem;
    flex-shrink: 0;
}

.cal-up-day { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.cal-up-month { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; opacity: 0.9; }

.cal-up-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cal-up-info strong {
    color: var(--text-color);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-up-info span {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

@media (max-width: 900px) {
    .calendar-public-wrap { flex-direction: column; }
    .calendar-public-right { width: 100%; }
    .cal-grid { gap: 4px; }
    .cal-day { min-height: 52px; }
    .cal-day-num { font-size: 0.85rem; }
}
