/* Base */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff7fa;
    color: #444;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.logo-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background-color: #FFEBE3;
    padding: 1rem 0;
    border-bottom: 5px solid #A55F7A;
}

.logo-header h1 {
    margin: 0;
    font-size: 3rem;
    color: #A55F7A;
}

.logo-header nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    display: flex;
    gap: 1.5rem;
}

.logo-header nav a {
    text-decoration: none;
    color: #A55F7A;
    font-weight: 400;
    transition: color 0.3s;
}

.logo-header nav a:hover {
    color: #A55F7A;
}

/* Header logo style - rounded image */
.logo-header .logo {
    max-height: 160px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

/* Hero */
.hero {
    background: linear-gradient(to right, #FFEBE3, #FFEBE3);
    padding: 8rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #A55F7A;
}

.text-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #6c2c56;
}

/* CTA Button */
.cta-btn {
    background-color: #A55F7A;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.cta-btn:hover {
    transform: scale(1.05);
    background-color: #A55F7A;
    box-shadow: 0 6px 14px rgba(255, 105, 180, 0.3);
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section.light {
    background-color: #fff0f6;
}

.section h2 {
    color: #A55F7A;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
select,
textarea {
    padding: 0.8rem;
    border: 1px solid #A55F7A;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fffafc;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #A55F7A;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.2);
}

/* Plan Result */
.result-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff0f6;
    border-left: 5px solid #FFEBE3;
    border-radius: 12px;
    display: none;
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-box h3 {
    color: #FFEBE3;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #FFEBE3;
    text-align: center;
    padding: 1.5rem 0;
    border-top: 3px solid #FFEBE3;
}

footer p {
    margin: 0;
    color: #6c2c56;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .text-content {
        align-items: center;
    }
    .cta-btn {
        margin-top: 1rem;
    }
}

/* Progress Bar & Chart */
#weeklyProgressChart {
    max-width: 100%;
    height: 300px;
    margin: 1rem auto;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

progress {
    width: 100%;
    height: 20px;
    border-radius: 10px;
    background-color: #e0e0e0;
}

#progress-text {
    font-size: 1rem;
    color: #6c2c56;
}

/* Tips Box */
.tips-box {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #fff0f5;
    padding: 20px;
    border-radius: 15px;
}

.tip {
    font-style: italic;
    color: #4a4a4a;
    background-color: #ffe6f0;
    padding: 10px 15px;
    border-radius: 10px;
}

#tip-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Girl Tips Section */
.tips-container {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tips-list {
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.tip-card {
    background-color: #fff0f6;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #A55F7A;
}

.tip-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 8px;
}

.tip-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.tip-author {
    font-weight: 600;
    color: #A55F7A;
}

.tips-form-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #FFEBE3;
}

.tip-input,
.tip-textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #FFEBE3;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    background-color: #fffafc;
}

.tip-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Comments Section */
.comment-area {
    margin-top: 15px;
}

.comment-input, .comment-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-textarea {
    min-height: 80px;
}

.comment-button {
    background: #6d4c41;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.comment {
    background: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 3px solid #6d4c41;
}

/* Scrollbar */
.tips-list::-webkit-scrollbar {
    width: 6px;
}
.tips-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.tips-list::-webkit-scrollbar-thumb {
    background: #A55F7A;
    border-radius: 10px;
}

/* Navigation active link */
nav ul li a.active {
    border-bottom: 2px solid #FFEBE3;
    color: #A55F7A;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 999;
    background: #6c2c56;
    color: white;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Victory Mode */
body.victory-mode {
    background: linear-gradient(135deg, #FFEBE3, #FFEBE3, #e0c3fc, #f9f9f9);
    animation: glowPulse 6s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.08);
    }
}

/* ================= DARK MODE ================= */
body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

/* Sections */
body.dark-mode .section {
    background-color: #1e1e1e;
}

/* Header & Footer */
body.dark-mode header,
body.dark-mode footer {
    background-color: #1c1c1c;
}

/* Inputs & Forms */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .tip-input,
body.dark-mode .tip-textarea,
body.dark-mode .comment-input,
body.dark-mode .comment-textarea {
    background-color: #1e1e1e;
    color: #f5f5f5;
    border: 1px solid #ffffff;
}

/* Buttons */
body.dark-mode .cta-btn,
body.dark-mode .comment-button {
    background-color: #A55F7A;
    color: #fff;
}

body.dark-mode .cta-btn:hover,
body.dark-mode .comment-button:hover {
    background-color: #ff69b4;
    box-shadow: 0 6px 14px rgba(255, 105, 180, 0.3);
}

/* Tips Cards & Containers */
body.dark-mode .tips-container,
body.dark-mode .tip-card,
body.dark-mode .tips-form-container,
body.dark-mode .girls-tips,
body.dark-mode .comment {
    background-color: #1e1e1e;
    border-color: #444;
    color: #f5f5f5;
}

/* Tip footer & author */
body.dark-mode .tip-footer {
    color: #ffffff;
}
body.dark-mode .tip-author {
    color: #ff69b4;
}

/* Scrollbars */
body.dark-mode .tips-list::-webkit-scrollbar-track {
    background: #1e1e1e;
}
body.dark-mode .tips-list::-webkit-scrollbar-thumb {
    background: #A55F7A;
}

/* Result Box & Progress */
body.dark-mode .result-box,
body.dark-mode .progress-container,
body.dark-mode .surprise-box {
    background-color: #1f1f1f;
    border: 1px solid #444;
    color: #f5f5f5;
}

/* Navigation Links */
body.dark-mode nav a {
    color: #A55F7A;
}
body.dark-mode nav ul li a.active {
    border-bottom: 2px solid #ff69b4;
    color: #ff69b4;
}












/* ================= MOBILE-FRIENDLY ADJUSTMENTS ================= */
@media (max-width: 992px) {

    /* Container padding */
    .container {
        padding: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1rem;
    }

    .text-content h2 {
        font-size: 2rem;
    }

    .text-content p {
        font-size: 1rem;
    }

    .cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Header Nav */
    .logo-header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .logo-header h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .logo-header .logo {
        max-height: 120px;
    }
}

@media (max-width: 768px) {

    /* Hero layout stacks nicely */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    /* Form elements full-width and easier touch targets */
    input,
    select,
    textarea,
    .cta-btn {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }

    /* Days checkboxes stack vertically */
    .days-checkboxes {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Tips section stack and spacing */
    .tips-container {
        padding: 15px;
    }

    .tip-card {
        padding: 12px;
    }

    .tips-form-container {
        padding: 15px;
    }

    /* Footer text smaller and centered */
    footer p {
        font-size: 0.9rem;
        text-align: center;
    }

    /* Adjust CTA buttons */
    .cta-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Hero text smaller for small screens */
    .text-content h2 {
        font-size: 1.7rem;
    }

    .text-content p {
        font-size: 0.95rem;
    }

    /* Header stacked */
    .logo-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    /* Nav items smaller and stacked */
    .logo-header nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Input and buttons bigger for touch */
    input,
    select,
    textarea,
    .cta-btn {
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* Result and progress boxes padding smaller */
    .result-box,
    .progress-container,
    .surprise-box {
        padding: 12px;
    }

    /* Tips scrollable area smaller */
    .tips-list {
        max-height: 300px;
    }
}