/* Custom barvy pro Reservando podle oficiální nápovědy */
:root > * {
  --md-primary-fg-color:        #d9230f;
  --md-primary-fg-color--light: #e85d4d;
  --md-primary-fg-color--dark:  #b91c0d;
  
  --md-accent-fg-color:         #d9230f;
  --md-accent-fg-color--transparent: rgba(217, 35, 15, 0.1);
}

/* CTA tlačítka podle stylu Reservando */
.md-button {
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-shadow: 0 2px 4px rgba(217, 35, 15, 0.2);
}

.md-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.md-button--primary {
    background-color: #d9230f;
    color: white;
    border: 2px solid #d9230f;
}

.md-button--primary:hover {
    background-color: #b91c0d;
    border-color: #a0170b;
    color: white;
}

.md-button--success {
    background-color: #4caf50;
    color: white;
    border: 2px solid #4caf50;
}

.md-button--success:hover {
    background-color: #388e3c;
    border-color: #388e3c;
    color: white;
}

.md-button--warning {
    background-color: #ff9800;
    color: white;
    border: 2px solid #ff9800;
}

.md-button--warning:hover {
    background-color: #f57c00;
    border-color: #f57c00;
    color: white;
}

.md-button--info {
    background-color: #d9230f;
    color: white;
    border: 2px solid #d9230f;
}

.md-button--info:hover {
    background-color: #b91c0d;
    border-color: #a0170b;
    color: white;
}

/* Responzivní video embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 poměr */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1rem 0;
}

.video-embed iframe,
.video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Vylepšení pro admonitions */
.md-typeset .admonition {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.md-typeset .admonition-title {
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

/* Tip admonition */
.md-typeset .admonition.tip {
    border-left-color: #4caf50;
}

.md-typeset .admonition.tip .admonition-title {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

/* Warning admonition */
.md-typeset .admonition.warning {
    border-left-color: #ff9800;
}

.md-typeset .admonition.warning .admonition-title {
    background-color: rgba(255, 152, 0, 0.1);
    color: #e65100;
}

/* Note admonition */
.md-typeset .admonition.note {
    border-left-color: #2196f3;
}

.md-typeset .admonition.note .admonition-title {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1565c0;
}

/* Success admonition */
.md-typeset .admonition.success {
    border-left-color: #4caf50;
}

.md-typeset .admonition.success .admonition-title {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
}

/* Example admonition */
.md-typeset .admonition.example {
    border-left-color: #9c27b0;
}

.md-typeset .admonition.example .admonition-title {
    background-color: rgba(156, 39, 176, 0.1);
    color: #6a1b9a;
}

/* Vylepšení pro tabbed content */
.md-typeset .tabbed-set {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-typeset .tabbed-set > input:checked + label {
    background-color: #d9230f;
    color: white;
    border-color: #d9230f;
}

/* Vylepšení pro kód bloky */
.md-typeset code {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.85em;
}

.md-typeset pre > code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

/* Vylepšení pro tabulky */
.md-typeset table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-typeset table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* Navigace - ponecháme původní vzhled */
.md-nav__link {
    /* Ponecháme defaultní Material for MkDocs styling */
}

/* Search input - ponecháme původní vzhled */
.md-search__input {
    /* Ponecháme defaultní Material for MkDocs styling */
}

/* Vylepšení pro footer */
.md-footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

/* Vylepšení pro sidebar */
.md-sidebar {
    background-color: #fafafa;
}

/* Responzivní design */
@media (max-width: 768px) {
    .md-button {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .video-embed {
        margin: 0.5rem 0;
    }
    
    .md-typeset .admonition {
        margin: 1rem 0;
    }
}

/* Dark mode podpora */
[data-md-color-scheme="slate"] .md-button--primary {
    background-color: #d9230f;
    border-color: #d9230f;
}

[data-md-color-scheme="slate"] .md-button--primary:hover {
    background-color: #b91c0d;
    border-color: #a0170b;
}

[data-md-color-scheme="slate"] .md-typeset .admonition {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-md-color-scheme="slate"] .md-typeset table th {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Print styles */
@media print {
    .md-button {
        display: none;
    }
    
    .video-embed {
        display: none;
    }
    
    .md-typeset .admonition {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Accessibility improvements */
.md-button:focus {
    outline: 2px solid #d9230f;
    outline-offset: 2px;
}

.md-button:focus:not(:focus-visible) {
    outline: none;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Odstup obrázků od okolního textu */
.md-typeset img {
    margin: 1.5em auto;   /* vertikální mezera nahoře i dole */
    display: block;       /* ať jsou obrázky centrované */
    max-width: 100%;      /* aby nepřesahovaly */
    border-radius: 6px;   /* volitelné zaoblení rohů */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); /* jemný stín */
  }