/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

h2,
h3 {
    line-height: 1.3;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

/* PWA Install Header */
.pwa-install-header {
    background: #000000;
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.pwa-install-content>div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.pwa-install-content>div:last-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install-btn {
    background: white;
    border: none;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.pwa-install-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

.pwa-dismiss-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 100vh;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('./images/hero-banner.webp');
    background-size: cover;
    background-position: 50% 45%;
    background-repeat: no-repeat;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 1rem;
}

.hero-logo {
    margin-bottom: 2rem;
}

.logo-image {
    width: 80px;
    height: auto;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: white;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    background: #448989;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-size: 1.125rem;
    font-weight: 600;
    transition: background-color 0.2s;
    width: 200px;
    text-align: center;
}

.hero-cta:hover {
    background: #3a7a7a;
}

/* Manual Install Button */
.manual-install-section {
    margin-top: 1rem;
}

.manual-install-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    width: 200px;
    text-align: center;
}

.manual-install-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 4rem 0;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 1rem 0;
    color: #1f2937;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    display: flex;
    align-items: center;
    text-align: center;
}

.card-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    transform: translateY(-0.125em);
}

.card-svg-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
}

.card-text {
    color: #6b7280;
    line-height: 1.6;
}

.card-text a {
    color: #448989;
}

.card-text a:hover {
    color: #3a7a7a;
}

/* Donation Section */
.donation-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem calc(2rem - 16px);
    margin: 2rem 0;
}

.payment-widget {
    margin-top: 2rem;
    text-align: center;
}

/* Bank Transfer Section */
.bank-transfer-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.bank-transfer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.bank-transfer-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: #f9fafb;
}

.bank-detail-label {
    font-weight: 600;
    color: #374151;
    min-width: 146px;
    flex-shrink: 0;
}

.bank-detail-value {
    font-family: monospace;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
}

.copy-btn {
    background: transparent;
    color: #6b7280;
    border: none;
    padding: 0.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #374151;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.copy-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
}

.copy-btn.copied .copy-icon {
    stroke: #10b981;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1f2937;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Cookie Overlay */
.cookie-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.cookie-overlay.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-overlay.animating-out {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.cookie-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.cookie-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-right: 0.5rem;
}

.cookie-description {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.3;
}

.cookie-emphasis {
    font-weight: 500;
    color: #374151;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.75rem;
    height: 1.5rem;
    line-height: 1;
}

.cookie-learn-more {
    background: white;
    color: #448989;
    border: 1px solid #448989;
}

.cookie-learn-more:hover {
    background: rgba(68, 137, 137, 0.1);
    border-color: #448989;
}

.cookie-got-it {
    background: #448989;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.cookie-got-it:hover {
    background: #3a7a7a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        height: 100vh;
        min-height: 600px;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-description {
        font-size: clamp(1rem, 4vw, 1.25rem);
    }

    .main-content {
        padding: 2rem 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card,
    .bank-transfer-section {
        padding: 1.5rem;
    }

    .donation-section {
        padding: 1.5rem calc(1.5rem - 16px);
    }

    .bank-details {
        gap: 0.75rem;
    }

    .bank-detail-item {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .bank-detail-label {
        min-width: auto;
        font-size: 0.875rem;
    }

    .bank-detail-value {
        font-size: 0.875rem;
        word-break: break-all;
    }

    .copy-btn {
        flex-shrink: 0;
        margin-left: 0.25rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-text {
        text-align: left;
    }

    .cookie-buttons {
        flex-direction: row;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .pwa-install-content {
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
        flex-wrap: nowrap;
    }

    .pwa-install-content>div:first-child {
        flex-direction: row;
        gap: 0.5rem;
        flex-shrink: 1;
    }

    .pwa-install-content>div:last-child {
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-cta {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .card,
    .bank-transfer-section {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .cookie-overlay {
        padding: 0.5rem;
    }

    .cookie-content {
        padding: 0.5rem;
        gap: 0.75rem;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .cookie-text {
        text-align: left;
    }

    .cookie-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .cookie-title {
        font-size: 0.75rem;
    }

    .bank-detail-item {
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .bank-detail-label {
        font-size: 0.8rem;
    }

    .bank-detail-value {
        font-size: 0.8rem;
    }

    .copy-btn {
        min-width: 28px;
        height: 28px;
        margin-left: 0.25rem;
    }

    .copy-icon {
        width: 14px;
        height: 14px;
    }

    .cookie-description {
        font-size: 0.6875rem;
    }

    .cookie-btn {
        font-size: 0.6875rem;
        padding: 0.125rem 0.375rem;
        height: 1.375rem;
    }
}

/* Print Styles */
@media print {

    .pwa-install-header,
    .cookie-overlay,
    .toast-container {
        display: none !important;
    }

    .hero-banner {
        height: auto;
        min-height: auto;
    }

    .hero-overlay {
        filter: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
