/* ============================================================
   Biatec Guide Pages - Shared Styles
   ============================================================ */

/* ============================================================
   Hub Page
   ============================================================ */
.guide-hub-hero {
    background: linear-gradient(135deg, #466B18 0%, #304A10 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.guide-hub-hero h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.guide-hub-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.guide-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.guide-search-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.guide-search-wrapper input:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.guide-search-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.guide-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.guide-search-results.show {
    display: block;
}

.guide-search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.guide-search-result-item:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.guide-search-result-item:last-child {
    border-bottom: none;
}

.guide-search-result-item i {
    color: var(--biatec-green);
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.guide-search-result-item .result-title {
    font-weight: 600;
}

.guide-search-result-item .result-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

.guide-search-no-results {
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
}

/* Category Sections */
.guide-category {
    margin-bottom: 2.5rem;
}

.guide-category-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.guide-category-title i {
    color: var(--biatec-green);
    margin-right: 0.5rem;
}

/* Guide Cards */
.guide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.guide-card:hover {
    border-color: var(--biatec-green);
    box-shadow: 0 4px 16px rgba(70, 107, 24, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: #333;
}

.guide-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #466B18 0%, #5b8C1F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
}

.guide-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.guide-card-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0;
    flex-grow: 1;
}

.guide-card-arrow {
    text-align: right;
    margin-top: 0.75rem;
    color: var(--biatec-green);
    font-size: 0.85rem;
}

/* File type cards - smaller variant */
.guide-card-sm {
    padding: 1rem;
}

.guide-card-sm .guide-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.guide-card-sm .guide-card-title {
    font-size: 0.9rem;
}

.guide-card-sm .guide-card-desc {
    font-size: 0.8rem;
}

/* ============================================================
   Individual Guide Pages
   ============================================================ */

/* Breadcrumbs */
.guide-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.guide-breadcrumb .breadcrumb-item a {
    color: var(--biatec-green);
    text-decoration: none;
}

.guide-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.guide-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

/* Page header */
.guide-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--biatec-green);
}

.guide-page-header h1 {
    color: var(--biatec-green);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.guide-page-header h1 i {
    margin-right: 0.5rem;
}

.guide-page-header p {
    color: #6c757d;
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Content area */
.guide-content-area {
    max-width: 900px;
}

.guide-content-area.guide-content-wide {
    max-width: 1200px;
}

/* Section styles */
.guide-section {
    margin-bottom: 2.5rem;
}

.guide-section h2 {
    color: var(--biatec-green);
    font-size: 1.4rem;
    border-bottom: 2px solid var(--biatec-green);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.guide-section h3 {
    color: #333;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

/* Steps */
.guide-step {
    background: #f8f9fa;
    border-left: 4px solid var(--biatec-green);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #466B18 0%, #304A10 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.guide-step-large .guide-step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

/* Info/Warning/Tip boxes */
.guide-info-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.guide-info-box i {
    margin-right: 0.5rem;
    color: var(--biatec-green);
}

.guide-info-box.warning {
    background: #fff3e0;
    border-color: #ffcc80;
}

.guide-info-box.warning i {
    color: #e65100;
}

.guide-info-box.danger {
    background: #fbe9e7;
    border-color: #ffab91;
}

.guide-info-box.danger i {
    color: #c62828;
}

.guide-highlight-box {
    background: linear-gradient(135deg, #466B18 0%, #304A10 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.guide-highlight-box h5 {
    color: white;
    margin-bottom: 1rem;
}

.guide-highlight-box ul,
.guide-highlight-box ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.guide-highlight-box li {
    margin-bottom: 0.5rem;
}

/* Screenshots */
.guide-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.guide-screenshot {
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    max-width: 400px;
    position: relative;
}

.guide-screenshot:hover {
    border-color: var(--biatec-green);
    box-shadow: 0 4px 12px rgba(70, 107, 24, 0.2);
    transform: translateY(-2px);
}

.guide-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.guide-screenshot-caption {
    padding: 0.5rem;
    background: #f8f9fa;
    font-size: 0.85rem;
    text-align: center;
    color: #576565;
}

/* Image Preview Modal */
#imagePreviewModal .modal-dialog {
    max-width: 90%;
    max-height: 90vh;
}

#imagePreviewModal .modal-content {
    background: transparent;
    border: none;
}

#imagePreviewModal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imagePreviewModal img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#imagePreviewModal .btn-close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1060;
}

#imagePreviewModal .btn-close-modal:hover {
    background: #f8f9fa;
}

/* Tables in guides */
.guide-table {
    font-size: 0.875rem;
}

.guide-table th {
    background: var(--biatec-green);
    color: white;
}

.guide-table code {
    background: #e9ecef;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.guide-defaults-table th {
    background: #f8f9fa;
    width: 40%;
}

.guide-defaults-table code {
    background: #e9ecef;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Related guides */
.guide-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.guide-related h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

/* ============================================================
   Blog
   ============================================================ */
.blog-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--biatec-green);
    box-shadow: 0 4px 16px rgba(70, 107, 24, 0.15);
    transform: translateY(-2px);
}

.blog-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--biatec-green);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    flex-grow: 1;
}

.blog-card-tags {
    margin-top: 0.75rem;
}

.blog-card-tag {
    display: inline-block;
    background: #e9ecef;
    color: var(--biatec-green-dark);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    text-decoration: none;
}

.blog-card-tag:hover {
    background: #dee2e6;
    text-decoration: none;
}

/* Blog post */
.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.blog-post-header h1 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.blog-post-meta {
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.blog-post-content h2 {
    color: var(--biatec-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .guide-hub-hero {
        padding: 2rem 1rem;
    }

    .guide-hub-hero h1 {
        font-size: 1.5rem;
    }

    .guide-page-header h1 {
        font-size: 1.4rem;
    }

    .guide-screenshots {
        flex-direction: column;
    }

    .guide-screenshot {
        max-width: 100%;
    }
}

/* ============================================================
   Annotated Screenshot with Tooltip Markers
   ============================================================ */
.guide-annotated-screenshot {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: visible;
    margin: 1rem 0;
}

.guide-annotated-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.guide-marker {
    position: absolute;
    width: 26px;
    height: 26px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, opacity 0.15s ease;
    transform: translate(-50%, -50%);
}

.guide-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.3;
}

.guide-marker.active {
    opacity: 1;
}

.guide-marker.active:hover {
    opacity: 1;
}

.guide-marker-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: normal;
    width: 260px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 20;
    pointer-events: none;
}

.guide-marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.guide-marker.active .guide-marker-tooltip {
    display: block;
}

/* Tooltip na spodku pre markery v hornej časti obrázka */
.guide-marker.tooltip-bottom .guide-marker-tooltip {
    bottom: auto;
    top: calc(100% + 8px);
}

.guide-marker.tooltip-bottom .guide-marker-tooltip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #333;
}

/* Tooltip doľava pre markery na pravej strane */
.guide-marker.tooltip-left .guide-marker-tooltip {
    left: auto;
    right: 50%;
    transform: translateX(0);
}

.guide-marker.tooltip-left .guide-marker-tooltip::after {
    left: auto;
    right: 12px;
}

@media (max-width: 768px) {
    .guide-marker {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    .guide-marker-tooltip {
        width: 200px;
        font-size: 0.75rem;
    }
}
