/**
 * Personal Ramadan Donation Website Styles
 * U Gargaar Walaalkeen
 */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */

:root {
    --dark-green: #0f5132;
    --gold: #ffc107;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-gray: #6c757d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--white);
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND PATTERN (Crescent)
   ============================================ */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(15, 81, 50, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: var(--dark-green);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--dark-green) 0%, #1a6b4a 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--gold);
    color: var(--dark-green);
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: var(--shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #ffb300;
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-green);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--gold);
    margin: 1rem auto;
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.goal-amount {
    text-align: center;
    font-size: 2rem;
    color: var(--dark-green);
    font-weight: bold;
    margin-top: 2rem;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-section {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 3rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.progress-stat {
    text-align: center;
}

.progress-stat h3 {
    color: var(--dark-green);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.progress-stat p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 2rem;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-green) 0%, var(--gold) 100%);
    border-radius: 10px;
    transition: width 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    color: var(--dark-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   DONATIONS LIST
   ============================================ */

.donations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.donation-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
    transition: transform 0.3s ease;
}

.donation-item:hover {
    transform: translateX(5px);
}

.donation-name {
    font-weight: bold;
    color: var(--dark-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.donation-amount {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.donation-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ============================================
   MESSAGES
   ============================================ */

.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.message-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
}

.message-author {
    font-weight: bold;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.message-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-style: italic;
}

.message-date {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: right;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-green);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: var(--white);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.form-helper-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* ============================================
   PAYMENT METHODS SECTION
   ============================================ */

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.payment-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--gold);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.payment-card-header {
    background: linear-gradient(135deg, var(--dark-green) 0%, #1a6b4a 100%);
    padding: 1.5rem;
    text-align: center;
}

.payment-card-header h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

.payment-card-body {
    padding: 1.5rem;
}

.payment-info {
    margin-bottom: 1.5rem;
}

.payment-info:last-child {
    margin-bottom: 0;
}

.payment-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.payment-value-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--light-gray);
    padding: 0.75rem;
    border-radius: 8px;
}

.payment-value {
    flex: 1;
    color: var(--dark-green);
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background-color: var(--gold);
    color: var(--dark-green);
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 32px;
}

.copy-btn:hover {
    background-color: #ffb300;
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background-color: #28a745;
    color: var(--white);
}

.copy-btn.copied svg {
    display: none;
}

.copy-btn.copied::after {
    content: '✓';
    font-size: 1rem;
    font-weight: bold;
}

/* ============================================
   DONATION FORM CONTAINER
   ============================================ */

.donation-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.btn-submit {
    background-color: var(--gold);
    color: var(--dark-green);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
    background-color: #ffb300;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-loader svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #28a745;
}

/* ============================================
   ADMIN STYLES
   ============================================ */

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-green);
    color: var(--white);
    padding: 2rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar h2 {
    color: var(--gold);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin-bottom: 1rem;
}

.admin-menu a {
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--gold);
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    padding: 2rem;
    background-color: var(--light-gray);
}

.admin-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark-green) 0%, #1a6b4a 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.stat-card.gold {
    background: linear-gradient(135deg, var(--gold) 0%, #ffb300 100%);
    color: var(--dark-green);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
    background-color: var(--dark-green);
    color: var(--white);
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: var(--light-gray);
}

.btn-danger {
    background-color: #dc3545;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--dark-green);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--gold);
    color: var(--dark-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    font-size: 1.5rem;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
    display: flex;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        background-color: var(--dark-green);
        width: 100%;
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .donations-list,
    .messages-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-info {
        flex-direction: column;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-form-container {
        padding: 2rem 1rem;
    }
    
    .whatsapp-btn {
        bottom: 90px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}
