@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d0f3d;
    --text-color: #ffffff;
    --accent-color: #4facfe;
    /* Light blue for accents */
    --hover-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif !important;
    background-color: #f4f6f9;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    position: relative;
    padding: 0 15px;
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--hover-bg);
    color: #fff;
    transform: translateX(5px);
}

.nav-link i {
    width: 25px;
    font-size: 18px;
    margin-right: 15px;
    text-align: center;
}

/* Main Content Area (Placeholder) */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

/* Response for smaller screens */
/* Responsive styles moved to assets/css/mobile.css */

/* Card Grid Styling */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

/* Use this to prevent single items from stretching to full width */
.card-container.no-stretch {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Needed for absolute positioning of badges */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    width: 100%;
    height: 140px;
    /* Adjusted for 800x200 banner style */
    object-fit: cover;
    object-position: center;
}

.card-img-logo {
    object-fit: contain;
    background-color: #f8f9fa;
    /* Light grey background */
    padding: 10px;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 0;
    /* Handled by container or specific usage */
    font-weight: 700;
}

.card-header-row .card-title {
    margin-bottom: 0;
}

.card-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    /* Reduced to fit compatibility info */
    line-height: 1.6;
    flex-grow: 1;
}

.card-compatibility {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(13, 15, 61, 0.9);
    /* Dark background for contrast */
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.card-compatibility i {
    margin-right: 4px;
    color: #4facfe;
}

.card-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Voting System */
.vote-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    /* Reset margins */
}

.vote-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.vote-good:hover,
.vote-good.active {
    color: #4caf50;
    border-color: #4caf50;
}

.vote-bad:hover,
.vote-bad.active {
    color: #f44336;
    border-color: #f44336;
}

.vote-btn i {
    font-size: 1.1em;
}

/* Button Styling */
.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.btn-download {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(13, 15, 61, 0.3);
}

.btn-download:hover {
    filter: brightness(1.2);
    box-shadow: 0 6px 20px rgba(13, 15, 61, 0.4);
}

.btn-youtube {
    background: linear-gradient(135deg, #cc0000 0%, #ff0000 100%);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.lang-flag {
    width: 32px;
    height: auto;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease, filter 0.2s;
    opacity: 0.7;
}

.lang-flag:hover,
.lang-flag.active {
    transform: scale(1.2);
    opacity: 1;
    /* Removed white drop-shadow/filter */
}

.btn-donate {
    width: 100%;
    padding: 12px;
    background: #e9ecef;
    /* Light gray/Semi-white */
    border: none;
    border-radius: 10px;
    color: var(--primary-color);
    /* Dark text for contrast */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-donate:hover {
    background: #ffffff;
    /* White on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
}

.donation-methods {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.method {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    background: #f9f9f9;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.payment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.payment-row strong {
    font-weight: 600;
    color: #333;
}

.btn-copy {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #f0f0f0;
    color: var(--primary-color);
    border-color: #bbb;
}

.method-body .small {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* WhatsApp Popup */
.whatsapp-popup {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s;
}

.whatsapp-content {
    background-color: #fff;
    margin: 15% auto;
    /* Centered vertically approx */
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    font-family: 'Poppins', sans-serif;
}

.close-whatsapp {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-whatsapp:hover {
    color: #333;
}

.whatsapp-content h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    color: #075e54;
    /* WhatsApp Dark Green */
    font-size: 22px;
}

.whatsapp-content p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25d366;
    /* WhatsApp Light Green */
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: none;
}

.whatsapp-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}

.whatsapp-footer label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-footer input[type="checkbox"] {
    accent-color: #075e54;
    width: 16px;
    height: 16px;
}

/* Instagram Popup */
.instagram-popup {
    display: none;
    position: fixed;
    z-index: 3001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    animation: fadeIn 0.3s;
}

.instagram-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    font-family: 'Poppins', sans-serif;
}

.close-instagram {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.close-instagram:hover {
    color: #333;
}

.instagram-content h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
}

.instagram-content p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-instagram {
    display: inline-block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.6);
    filter: brightness(1.1);
}

.instagram-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}

.instagram-footer label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* Promo Modal Styling */
.promo-modal-content {
    background: var(--primary-color);
    max-width: 540px;
    /* Increased to fit text on single line */
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 20px;
}

.promo-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.promo-header h2 {
    margin: 0;
    font-size: 24px;
    color: #fff;
}

.promo-header h2 i {
    color: #ffd700;
    /* Gold icon */
    margin-right: 10px;
}

.promo-body {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    padding: 25px;
    text-align: center;
}

.promo-intro {
    text-align: center;
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
}

.promo-offer {
    background: #f0f4f8;
    border-radius: 10px;
    padding: 15px;
    /* Reduced to give text more room */
    margin-bottom: 30px;
    border: 1px solid #e1e8ed;
}

.promo-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.promo-period {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.promo-features {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    width: -moz-fit-content;
    width: fit-content;
    text-align: left;
    /* Ensure text is left aligned relative to the icon */
}

.promo-features li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.promo-features li:last-child {
    margin-bottom: 0;
}

.feat-icon {
    font-size: 20px;
    color: #4caf50;
    padding-top: 2px;
    flex-shrink: 0;
}

.feat-text {
    flex-grow: 1;
}

.feat-text strong {
    display: block;
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.feat-text p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.promo-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-whatsapp-promo {
    background-color: #25d366;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-promo:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-secondary-promo {
    background-color: transparent;
    color: #777;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.btn-secondary-promo:hover {
    color: #333;
    text-decoration: underline;
}

.close-promo {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-promo:hover {
    color: #fff;
}