/*
 * Country Details page styles
 * Converted from G2.Web.Client/Components/CountryDetails/*.razor.css
 */

/* ========================================
   Country Details Hero Header Styles
   From: CountryDetailsHeroHeader.razor.css
   ======================================== */

/* Image wrapper defines the fixed placeholder */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* keeps consistent shape */
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Image always covers the wrapper */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Transparent "glass" effect for badges */
.badge-glass {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-button {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    transition: all 0.3s ease;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

.glass-button:active {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(0);
}

/* ========================================
   Country Timeline Styles
   From: CountryTimeline.razor.css
   ======================================== */

.timeline-scroll-container::-webkit-scrollbar {
    height: 10px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
    background: transparent;
    margin-inline: 15px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: background 0.3s ease;
}

.timeline-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.timeline-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.timeline-items-wrapper {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
}

.timeline-item {
    min-width: 225px;
    max-width: 225px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    border-left: 3px solid rgba(42, 32, 111, 0.6);
    scroll-snap-align: start;
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.timeline-description {
    font-size: 0.85rem;
    color: #212529;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: calc(1.2em * 4);
    white-space: wrap;
    text-align: left;
}

/* ========================================
   Related Items Section Styles
   From: RelatedItemsList component styling
   ======================================== */

.related-items-section {
    margin-bottom: 1rem;
}

.related-items-section .card-header {
    padding-bottom: 0.5rem;
}

.link-view-all {
    font-size: 0.875rem;
    white-space: nowrap;
}

.link-view-all:hover {
    text-decoration: none !important;
}


/* ========================================
   Language Toggle Styles
   ======================================== */

.btn-group[role="group"] .btn.btn-outline-primary.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}