body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #004a99 0%, #002a5e 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 10px 0 20px;
}

.stats {
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
}

.pin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}

.pin-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.pin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.pin-card.collected {
    background-color: #e8f5e9;
    border-color: #4caf50;
    opacity: 0.85;
}

.pin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.country-name-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-flag {
    width: 24px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.country-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.badge.host {
    background-color: #ffd700;
    color: #000;
}

.pin-details {
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #666;
}

.detail-item .label {
    font-weight: 400;
}

.detail-item .value {
    font-weight: 600;
    color: #333;
}

.toggle-form {
    margin: 0;
}

.toggle-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}

.btn-collect {
    background-color: #004a99;
    color: white;
}

.btn-collect:hover {
    background-color: #003366;
}

.btn-uncollect {
    background-color: #fff;
    color: #4caf50;
    border: 2px solid #4caf50;
}

.btn-uncollect:hover {
    background-color: #4caf50;
    color: white;
}
