/* AOX.cz - Main Stylesheet */

/* Variables */
:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --card-bg: white;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --heading-color: #2c3e50;
    --highlight-color: #3498db;
    --highlight-hover: #2980b9;
    --border-color: #eee;
    --footer-border: #ddd;
    --description-color: #555;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2c2c2c;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --heading-color: #e0e0e0;
    --highlight-color: #3498db;
    --highlight-hover: #2980b9;
    --border-color: #444;
    --footer-border: #444;
    --description-color: #b0b0b0;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
header {
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.logo {
    font-size: 5rem;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

/* Theme Switcher */
.theme-switch-wrapper {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--highlight-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-icon {
    margin-left: 10px;
    font-size: 1.2rem;
}

/* Introduction Section */
.intro {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px var(--card-shadow);
    text-align: left;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.intro-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.intro-text {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight {
    font-weight: bold;
    color: var(--highlight-color);
    transition: color 0.3s ease;
}

/* Training Materials Button */
.training-materials-button {
    text-align: center;
    margin-top: 1.5rem;
}

/* Tiles Layout */
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    margin: 2rem 0;
}

.tile-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Tile Cards */
.tile {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.33% - 1rem);
    min-width: 280px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.tile:hover {
    transform: translateY(-5px);
}

.tile-image-link {
    display: block;
    cursor: pointer;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.tile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    display: block;
    transition: border-color 0.3s ease;
}

.tile-content {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tile-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.tile-description {
    margin-bottom: 1.5rem;
    color: var(--description-color);
    flex-grow: 1;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.tile-link-container {
    margin-top: auto;
    text-align: left;
}

.tile-link {
    display: inline-block;
    background-color: var(--highlight-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tile-link:hover {
    background-color: var(--highlight-hover);
}

/* Citation Section */
.citation {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 15px var(--card-shadow);
    text-align: left;
    border-left: 5px solid var(--highlight-color);
    font-style: italic;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.citation p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--description-color);
    transition: color 0.3s ease;
}

.signature {
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--heading-color);
    margin-top: 1.5rem;
    transition: color 0.3s ease;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--footer-border);
    transition: border-top-color 0.3s ease;
}

.footer-text {
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Utility Classes */
.price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tile {
        width: calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 3.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .tile {
        width: 100%;
    }
    
    .theme-switch-wrapper {
        top: 0.5rem;
        right: 0.5rem;
    }
}
