/* IMPROVED: Import all navbar styles from main styles.css */

/* Navbar container */
.nav-container {
    margin-top: 20px;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    border-radius: 10px;
    padding: 10px;
}

/* Remove bullets from lists */
.right-side, .left-side {
    list-style-type: none;
}

/* Inline list items */
.right-side li, .left-side li {
    display: inline-block;
}

.left-side {
    display: flex;
    align-items: center;
}

/* IMPROVED: Theme icon colors for SVG */
.my-light-mode .mode-toggle-button svg {
    color: #ebebeb;
}
.my-dark-mode .mode-toggle-button svg {
    color: #000000;
}

/* IMPROVED: LinkedIn icon colors */
.my-light-mode #Linkedin-icon { 
    filter: brightness(0) invert(1); 
}
.my-dark-mode #Linkedin-icon { 
    filter: brightness(0); 
}

/* IMPROVED: Icon sizing */
.nav-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

/* IMPROVED: Zimbabwe flag with water ripple effect */
#Zimflag {
    width: 30px;
    height: auto;
    max-height: 24px;
    object-fit: contain;
    animation: waterRipple 3s ease-in-out infinite;
    transform-origin: left center;
}

/* Water-like ripple animation */
@keyframes waterRipple {
    0% { transform: scaleX(1) scaleY(1) skewX(0deg); filter: hue-rotate(0deg) brightness(1); }
    16% { transform: scaleX(0.98) scaleY(1.02) skewX(1deg); filter: hue-rotate(2deg) brightness(1.05); }
    33% { transform: scaleX(1.02) scaleY(0.98) skewX(-1deg); filter: hue-rotate(-2deg) brightness(0.95); }
    50% { transform: scaleX(0.99) scaleY(1.01) skewX(2deg); filter: hue-rotate(3deg) brightness(1.1); }
    66% { transform: scaleX(1.01) scaleY(0.99) skewX(-1deg); filter: hue-rotate(-1deg) brightness(0.9); }
    83% { transform: scaleX(0.98) scaleY(1.02) skewX(1deg); filter: hue-rotate(1deg) brightness(1.05); }
    100% { transform: scaleX(1) scaleY(1) skewX(0deg); filter: hue-rotate(0deg) brightness(1); }
}

/* Mode toggle button */
.mode-toggle-button {
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.mode-toggle-button:hover {
    background-color: rgba(56, 161, 105, 0.1);
}

.mode-toggle-button a {
    color: transparent !important;
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Light and Dark mode */
.my-light-mode {
    color: #ebebeb;
    background-color: #292524;
}
.my-dark-mode {
    color: #000000;
    background-color: #e7e5e4;
}

body {
    font-family: 'Noto Serif', serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* IMPROVED: Consistent headings with main styles */
h1 { font-weight: 700 !important; line-height: 72px !important; font-size: 57px !important; }
h2 { font-weight: 700 !important; line-height: 60px !important; font-size: 50px !important; }
h3 { font-weight: 700 !important; line-height: 64px !important; font-size: 40px !important; }
h4 { font-weight: 550 !important; line-height: 50px !important; font-size: 28px !important; }
h5 { font-weight: 400 !important; line-height: 32px !important; font-size: 24px !important; }
h6 { font-weight: 400 !important; line-height: 24px !important; font-size: 20px !important; }

p { 
    font-weight: 400 !important; 
    font-size: 16px !important; 
    line-height: 24px !important; 
}

/* IMPROVED: Quiz container styling */
.quiz-container {
    margin-top: 40px;
    max-width: 800px;
}

.quiz-header {
    margin-bottom: 30px;
}

.quiz-subtitle {
    opacity: 0.8;
    font-size: 18px !important;
    margin-top: 10px;
}

/* IMPROVED: Quiz badge styling */
.quiz-badge {
    background: linear-gradient(135deg, #38A169, #2F855A);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

.badge-text {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* IMPROVED: Quiz details cards */
.quiz-details {
    margin-bottom: 40px;
}

.detail-card {
    background: rgba(56, 161, 105, 0.05);
    border: 2px solid rgba(56, 161, 105, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.detail-card:hover {
    background: rgba(56, 161, 105, 0.1);
    border-color: rgba(56, 161, 105, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.15);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
}

.detail-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #38A169;
}

.detail-value {
    font-weight: 700;
    font-size: 18px;
    color: #38A169;
}

/* IMPROVED: Start section */
.start-section {
    text-align: center;
    margin: 50px 0;
}

.motivation-text p {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin-bottom: 30px;
    opacity: 0.9;
}

.start-link {
    text-decoration: none;
}

.start-quiz-btn {
    background: linear-gradient(135deg, #38A169, #2F855A);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    color: white;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.3);
}

.start-quiz-btn:hover {
    background: linear-gradient(135deg, #2F855A, #276749);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 161, 105, 0.4);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Footer styles */
.footer { 
    margin-top: 100px; 
    color: #F6AD55; 
}

.footer-top { 
    background-color: #c7c5c5; 
    padding: 1px; 
    margin-bottom: 10px; 
}

.footer-item {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-item a:hover {
    color: #38A169;
}

/* IMPROVED: Mobile responsiveness */
@media (max-width: 768px) {
    .nav-icon { width: 20px; height: 20px; }
    #Zimflag { width: 26px; max-height: 20px; }
    #Linkedin-icon { width: 20px; height: 20px; }
    .nav-container { padding: 8px; }
    
    .quiz-header {
        text-align: center;
    }
    
    .quiz-badge {
        margin-top: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .start-quiz-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .footer-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-icon { width: 18px; height: 18px; }
    #Zimflag { width: 24px; max-height: 18px; }
    #Linkedin-icon { width: 18px; height: 18px; }
    .mode-toggle-button { padding: 3px; margin-left: 3px; }
    
    .quiz-container {
        margin-top: 20px;
    }
    
    h2 {
        font-size: 36px !important;
        line-height: 40px !important;
    }
    
    .start-quiz-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Theme transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}