/* assets/css/style.css - Custom Styling & Polish for D2DWSTR Platform */

:root {
    --apc-green: #006837;
    --apc-green-dark: #004d28;
    --apc-green-light: #008751;
    --apc-gold: #FDB913;
    --apc-gold-dark: #d99b00;
    --apc-cyan: #00ADEF;
    --apc-red: #ED1C24;
    --base-font-size: 16px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Accessibility: Font Scaling (Scales all Tailwind rem font sizes proportionally) */
html.font-normal, body.font-normal {
    font-size: 16px !important;
}
html.font-lg, body.font-lg {
    font-size: 19px !important;
}
html.font-xl, body.font-xl {
    font-size: 22px !important;
}

/* Accessibility: High Contrast Mode */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}
body.high-contrast .bg-white,
body.high-contrast .bg-gray-50,
body.high-contrast .bg-gray-100 {
    background-color: #121212 !important;
    color: #ffffff !important;
    border-color: #444444 !important;
}
body.high-contrast .text-gray-600,
body.high-contrast .text-gray-700,
body.high-contrast .text-gray-800 {
    color: #e2e8f0 !important;
}

/* Custom Gradients */
.bg-apc-gradient {
    background: linear-gradient(135deg, #004d28 0%, #006837 50%, #008751 100%);
}
.bg-apc-gold-gradient {
    background: linear-gradient(135deg, #FDB913 0%, #e6a502 100%);
}
.bg-hero-pattern {
    background-color: #004d28;
    background-image: radial-gradient(rgba(253, 185, 19, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Before / After Slider Styles */
.comparison-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    border-radius: 0.75rem;
}
.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid #FDB913;
    z-index: 10;
}
.comparison-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #FDB913;
    color: #004d28;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 20;
}

/* Digital Supporter Membership Card */
.supporter-card-render {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, #00361a 0%, #006837 70%, #024827 100%);
    border: 3px solid #FDB913;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.supporter-card-render::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(253, 185, 19, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Print Optimization for ID Card and Data Tables */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-card-area, #printable-card-area * {
        visibility: visible;
    }
    #printable-card-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* Google Translate Silent Styling */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget {
    display: none !important;
}
body {
    top: 0px !important;
}
.goog-tooltip {
    display: none !important;
}
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

