/* Globálne štýly pre okruhy_list.php a okruhy.php */
body {
    font-family: 'Roboto Condensed', Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    font-size: 16px;
}

/* Hlavný kontajner stránky */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
    position: relative;
    z-index: 1;
}

h2, .section-title {
    font-size: 2.5em;
    color: #e10600;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.3);
    padding-bottom: 15px;
}

/* --- Štýly pre zoznam okruhov (z okruhy_list.php) --- */
.circuit-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.circuit-card {
    background-color: #2b2b2b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.circuit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8), 0 0 10px #e10600;
}

.circuit-card a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: #f0f0f0;
    transition: color 0.3s;
}

.circuit-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 2px solid #e10600;
}

.circuit-card h3 {
    margin: 10px 0 0;
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}

.circuit-card:hover h3 {
    color: #e10600;
}

/* --- Štýly pre detail okruhu (okruhy.php) --- */
.circuit-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #333;
}

@media (min-width: 768px) {
    .circuit-header {
        flex-direction: row;
        text-align: left;
    }
}

.circuit-map {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.circuit-info {
    flex-grow: 1;
}

.circuit-info h1 {
    font-size: 2.8em;
    color: #e10600;
    margin-top: 0;
    margin-bottom: 10px;
}

.circuit-description {
    font-size: 1.1em;
    color: #ccc;
    line-height: 1.8;
}

/* --- Sekcie a Karty s Nastaveniami (Setups) --- */
.main-content-wrapper {
    margin-top: 40px;
}

.setup-section {
    margin-bottom: 50px;
}

.setup-card {
    background-color: #2b2b2b;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.setup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.setup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.setup-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.setup-badge.official {
    background-color: #e10600;
    color: #fff;
}

.setup-badge.community {
    background-color: #00bcd4;
    color: #121212;
}

.setup-version, .setup-author {
    color: #aaa;
    font-size: 0.9em;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background-color: #1e1e1e;
    border-radius: 8px;
}

.setup-item {
    font-size: 0.95em;
    color: #ccc;
}

.setup-item strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.setup-item span {
    font-family: monospace;
    font-weight: bold;
    color: #00bcd4;
}

.setup-tips {
    margin-top: 20px;
    padding: 15px;
    background-color: #121212;
    border-left: 3px solid #e10600;
    border-radius: 5px;
    font-style: italic;
    color: #bbb;
}

/* --- Formuláre --- */
.add-setup-form, .comment-form {
    background-color: #2b2b2b;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #fff;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #f0f0f0;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #e10600;
    outline: none;
}

.form-group.full-width {
    width: 100%;
}

.submit-btn {
    width: auto;
    margin-top: 10px;
}

/* --- Komentáre --- */
.comments-list {
    margin-top: 30px;
}

.comment {
    background-color: #2b2b2b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.comment-header strong {
    color: #fff;
}

.comment-date {
    color: #aaa;
    font-size: 0.9em;
}

.comment-text {
    color: #ddd;
    line-height: 1.6;
}

hr {
    border: none;
    border-top: 1px solid #444;
    margin: 40px 0;
}

/* --- Tlačidlá a správy (Kopírované z races.css) --- */
.btn {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary, .submit-btn {
    background-color: #e10600;
    color: #fff;
    border: 1px solid #e10600;
}

.btn-primary:hover, .submit-btn:hover {
    background-color: transparent;
    color: #e10600;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
}

.info-message, .error-message, .success-message {
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    font-weight: bold;
    max-width: 600px;
}

.info-message {
    background-color: #2a2a2a;
    color: #00bcd4;
    border: 1px solid #00bcd4;
}

.error-message {
    background-color: #4a1c1c;
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

.success-message {
    background-color: #1c4a1c;
    color: #4dff4d;
    border: 1px solid #4dff4d;
}