:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --primary: #FFD700;
    --primary-hover: #E5C100;
    --text-main: #FFFFFF;
    --text-muted: #B3B3B3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: #000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.navbar nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&q=80') center/cover;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Sections */
.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

.campaigns-section, .map-section {
    padding: 60px 0;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 20px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 1s ease-in-out;
}

.card-action {
    text-align: center;
    margin-top: auto;
}

.card-action .btn {
    width: 100%;
}

/* Map Placeholder */
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--bg-card);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    border: 2px dashed #444;
}

.map-placeholder p {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

/* Details Page specific */
.details-hero {
    padding: 40px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}
.details-hero h2 {
    color: var(--primary);
    font-size: 2.5rem;
}
.details-meta {
    color: var(--text-muted);
    margin-top: 10px;
}

.details-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.details-info {
    flex: 2;
    min-width: 300px;
}

.details-donate {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.details-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    max-height: 400px;
    object-fit: cover;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border: 2px solid var(--primary);
}

.modal-warning {
    color: #ff4444;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: rgba(255, 68, 68, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.modal-text {
    margin-bottom: 30px;
    color: var(--text-main);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}
.btn-secondary:hover {
    background-color: #444;
}

.qr-code-box {
    margin-top: 30px;
    display: none;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}
.qr-code-box.active {
    display: block;
}
.qr-code-box img {
    max-width: 200px;
    margin-bottom: 15px;
}

.qr-code-box h4 {
    color: #000;
    margin-bottom: 10px;
}

.qr-code-box .btn {
    margin-top: 10px;
}

/* Footer */
footer {
    padding: 30px 0;
    background-color: #000;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero h2 { font-size: 2rem; }
    .details-content { flex-direction: column; }
    .navbar .container { flex-direction: column; gap: 10px; }
}
