/* style.css */
:root {
    --primary-color: #d4f04d; /* Свеже-зеленый со скриншота */
    --primary-dark: #b8d43d;
    --bg-dark: #1e222a;
    --card-bg: #2a2e37;
    --widget-bg: #252830;
    --text-main: #ffffff;
    --text-muted: #a0a4ab;
    --border-color: #3f444e;
    --highlight-color: #d4f04d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

[v-cloak] { display: none; }

.main-wrapper {
    width: 100%;
}

.text-highlight {
    color: var(--highlight-color);
}

.bg-dark-theme {
    background-color: var(--bg-dark);
}

/* Scholarship Card */
.scholarship-card {
    background-color: var(--card-bg) !important;
    color: #fff !important;
    border-radius: 24px;
    transition: transform 0.2s ease-in-out;
}

.scholarship-title {
    font-size: 2rem;
    line-height: 1.2;
    word-break: break-word;
}

.country-flag-sm {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Badges */
.badge-custom {
    background-color: rgba(255,255,255,0.08);
    color: #e0e0e0;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.badge-custom svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Coverage Display Right */
.coverage-display {
    flex-shrink: 0;
    min-width: 140px;
}

@media (max-width: 768px) {
    .scholarship-title {
        font-size: 1.5rem;
    }
    .coverage-display {
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 0;
        width: 100%;
    }
}

.border-bottom-dashed {
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.bullet {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

/* Perks */
.perk-tag {
    background-color: rgba(255,255,255,0.05);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.perk-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Stat Cards */
.stats-grid .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.stats-grid .stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 2px;
}

.stat-subtext {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stat-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--text-muted);
    cursor: help;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.stat-icon:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Icons */
.info-icon {
    color: var(--text-muted);
    cursor: help;
    display: inline-flex;
}

.info-icon:hover {
    color: var(--primary-color);
}

/* Buttons */
.card-footer-custom {
    padding: 24px 48px;
    background-color: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-s {
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary-s {
    background-color: var(--primary-color);
    color: #000;
    border: none;
}

.btn-primary-s:hover {
    background-color: var(--primary-dark);
    color: #000;
}

.btn-secondary-s, .secondary-button {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-s:hover, .secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-favorite-large {
    background: none;
    border: none;
    padding: 4px;
    color: var(--text-muted);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.btn-favorite-large:hover {
    color: #fff;
    transform: scale(1.1);
}

.btn-favorite-large.active {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .card-footer-custom {
        padding: 20px 24px;
    }
}

/* Filters Styles */
.filters-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-select {
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 10px;
}

.custom-dropdown {
    position: relative;
}

.custom-dropdown .dropdown-menu {
    top: 100%;
    left: 0;
    margin-top: 8px;
    z-index: 1000;
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.dropdown-list-container {
    max-height: 250px;
    overflow-y: auto;
}

/* Custom Scrollbar for dropdowns */
.dropdown-list-container::-webkit-scrollbar {
    width: 6px;
}
.dropdown-list-container::-webkit-scrollbar-track {
    background: transparent;
}
.dropdown-list-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

/* Mobile Filter Trigger */
.mobile-filter-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 240, 77, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Mobile Filter Overlay */
.mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-filter-overlay.active {
    transform: translateY(0);
}

.mobile-list-container {
    max-height: 200px;
    overflow-y: auto;
}

.btn-highlight {
    background-color: var(--primary-color);
    color: #000;
}

/* Infinite Scroll Spinner */
.spinner-border.text-highlight {
    border-right-color: transparent;
}
