/**
 * Modern Country Section Styles
 * Cezayir Hakkında bölümü için modern tasarım
 * VTC eklentisinden gelen dinamik renkler kullanılır
 */

/* =========================== */
/* COUNTRY SECTION BASE        */
/* =========================== */

.country {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.country::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--vtc-primary-color-rgb), 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Section Title Modern Style */
.country .sec-title h2 {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.country .sec-title h2 span {
    color: var(--vtc-primary-color);
    display: block;
    margin-top: 10px;
}

.country .sec-title p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
}

/* =========================== */
/* TAB NAVIGATION              */
/* =========================== */

.xb-country-nav {
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: none;
    margin-bottom: 50px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.xb-country-nav .nav-item {
    flex: 1 1 auto;
}

.xb-country-nav .nav-link {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.xb-country-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--vtc-primary-color) 0%, var(--vtc-secondary-color) 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.xb-country-nav .nav-link:hover {
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--vtc-primary-color-rgb), 0.2);
}

.xb-country-nav .nav-link.active {
    background: linear-gradient(135deg, var(--vtc-primary-color) 0%, var(--vtc-secondary-color) 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(var(--vtc-primary-color-rgb), 0.3);
    transform: translateY(-2px);
}

/* Tab Icon Styling */
.xb-country-nav .nav-link i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.xb-country-nav .nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.xb-country-nav .nav-link.active i {
    transform: scale(1.15);
}

/* =========================== */
/* TAB CONTENT                 */
/* =========================== */

.country .tab-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
}

.country .tab-pane {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Typography */
.country .tab-pane h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.country .tab-pane h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--vtc-primary-color) 0%, var(--vtc-secondary-color) 100%);
    border-radius: 2px;
}

.country .tab-pane p {
    font-size: 16px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 25px;
}

/* List Styling */
.country .tab-pane ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.country .tab-pane ul li {
    padding: 15px 20px;
    margin-bottom: 0;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.country .tab-pane ul li:hover {
    background: #ffffff;
    border-color: var(--vtc-primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(var(--vtc-primary-color-rgb), 0.15);
}

.country .tab-pane ul li i {
    color: var(--vtc-primary-color);
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
}

/* Info Cards */
.country-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.country-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--vtc-primary-color-rgb), 0.05) 0%, transparent 40%);
}

.country-info-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.country-info-card p {
    margin: 0;
    color: #64748b;
}

/* Currency Section */
.currency-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    border: 2px solid #bfdbfe;
}

.currency-display .currency-flag {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.currency-display .currency-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #0f172a;
}

.currency-display .currency-info p {
    margin: 0;
    color: #64748b;
}

/* Climate Cards */
.climate-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.climate-card:hover {
    border-color: var(--vtc-primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--vtc-primary-color-rgb), 0.2);
}

.climate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--vtc-primary-color-rgb), 0.1) 0%, rgba(var(--vtc-secondary-color-rgb), 0.1) 100%);
    border-radius: 50%;
}

.climate-icon i {
    font-size: 36px;
    color: var(--vtc-primary-color);
}

/* =========================== */
/* RESPONSIVE STYLES           */
/* =========================== */

/* Tablet */
@media (max-width: 991px) {
    .country .sec-title h2 {
        font-size: 36px;
    }
    
    .xb-country-nav .nav-link {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .xb-country-nav .nav-link i {
        font-size: 20px;
    }
    
    .country .tab-content {
        padding: 35px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .country {
        padding: 60px 0 70px;
    }
    
    .country .sec-title h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .country .sec-title p {
        font-size: 16px;
        text-align: center;
    }
    
    /* Mobile Tab Navigation */
    .xb-country-nav {
        padding: 6px;
        gap: 6px;
        margin-bottom: 30px;
    }
    
    .xb-country-nav .nav-item {
        flex: 0 0 calc(50% - 3px);
        max-width: calc(50% - 3px);
    }
    
    .xb-country-nav .nav-link {
        padding: 12px 10px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .xb-country-nav .nav-link i {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    /* Mobile Tab Content */
    .country .tab-content {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .country .tab-pane h3 {
        font-size: 22px;
        padding-left: 25px;
    }
    
    .country .tab-pane h3::before {
        height: 24px;
        width: 3px;
    }
    
    .country .tab-pane p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .country .tab-pane ul li {
        padding: 12px 15px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .country .tab-pane ul li i {
        font-size: 16px;
        margin-right: 12px;
    }
    
    /* Mobile Info Cards */
    .country-info-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .currency-display {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .climate-card {
        padding: 20px;
    }
    
    .climate-icon {
        width: 60px;
        height: 60px;
    }
    
    .climate-icon i {
        font-size: 28px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .xb-country-nav .nav-link {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .xb-country-nav .nav-link i {
        display: none;
    }
}

/* =========================== */
/* 3D MAP CONTAINER STYLES     */
/* =========================== */

.algeria-map-container {
    width: 100%;
    height: 400px;
    position: relative;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#algeria-3d-map {
    width: 100%;
    height: 100%;
}

/* Map controls styling */
.map-controls {
    text-align: center;
    margin-top: 15px;
}

.map-controls small {
    color: var(--vtc-muted-text-color);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.map-controls i {
    color: var(--vtc-primary-color);
}

/* Mobile responsive for map */
@media (max-width: 991px) {
    .algeria-map-container {
        height: 350px;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .algeria-map-container {
        height: 250px;
        margin-top: 20px;
    }
    
    .map-controls small {
        font-size: 12px;
    }
}