/* World Standards Style Sheet */

:root {
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --surface-card: #ffffff;
    --bg-card: #f8fafc;
    --border-card: #e2e8f0;
    --txt-main: #0f172a;
    --txt-sub: #475569;
    --txt-muted: #94a3b8;
}

.ws-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 10px !important;
}

/* Force override global spacing to match converter page */
.page-wrap-tools {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.page-wrap-tools .main-content {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.ws-card {
    background: var(--surface-card);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-card);
    padding: 30px;
    overflow: hidden;
}

.ws-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 20px;
}

.ws-header i {
    font-size: 2.2rem;
    color: var(--accent);
}

.ws-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--txt-main);
    margin: 0;
}

.ws-intro-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--txt-sub);
    max-width: 900px;
    margin-bottom: 30px;
}

/* Filter bar & search styling */
.ws-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

@media (min-width: 768px) {
    .ws-filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input-wrap i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-muted);
    font-size: 1.1rem;
}

.search-input-wrap input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--txt-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    background: #fff;
}

.ws-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none; /* Firefox */
}

.ws-tabs::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.ws-tabs .tab-btn {
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    background: var(--bg-card);
    color: var(--txt-sub);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ws-tabs .tab-btn:hover {
    background: #fff;
    border-color: var(--txt-muted);
    color: var(--txt-main);
}

.ws-tabs .tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Grid & Card Layout */
.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.country-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-card);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
    background: #fff;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 12px;
}

.country-details {
    display: flex;
    flex-direction: column;
}

.country-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--txt-main);
    margin: 0;
}

.country-code {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--txt-muted);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
    padding-bottom: 6px;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--txt-sub);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    font-size: 0.95rem;
    color: var(--txt-muted);
    width: 16px;
    text-align: center;
}

.detail-val {
    color: var(--txt-main);
    font-weight: 600;
    text-align: right;
}

/* Flag Icon Fix */
.flag-icon {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    background-size: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Empty states */
.ws-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--txt-muted);
}

.ws-no-results i {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.ws-no-results p {
    font-size: 1.1rem;
    font-weight: 500;
}
