/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Baloo Bhai 2', cursive;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: #5D4037;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

header h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    text-align: center;
}

main {
    width: 100%;
    max-width: 600px;
}

.tip-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

#tip-title {
    font-size: 2.2rem;
    color: #E65100; /* Deep Orange */
    margin-bottom: 1.5rem;
}

.listen-btn {
    background-color: #FF7043; /* Coral */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0.5rem;
}

.listen-btn:hover {
    background-color: #FFA726; /* Amber */
    transform: scale(1.1);
}

#tip-explanation-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #ffcc80; /* Light Orange */
}

#tip-explanation {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #6D4C41; /* Brown */
    margin-bottom: 1rem;
}

#toggle-explanation-btn {
    background-color: #FF7043; /* Coral */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

#toggle-explanation-btn:hover {
    background-color: #FFA726; /* Amber */
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.navigation button {
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.navigation button:hover {
    background-color: #66BB6A; /* Light Green */
    transform: scale(1.05);
}

.category-container h3 {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}

#category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

#category-buttons button {
    background-color: #fff;
    color: #E65100;
    border: 2px solid #E65100;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

#category-buttons button:hover {
    background-color: #E65100;
    color: #fff;
    transform: scale(1.05);
}

#category-buttons button.active {
    background-color: #E65100;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }

    #tip-title {
        font-size: 2rem;
    }

    #tip-explanation {
        font-size: 1.1rem;
    }

    .navigation button, #toggle-explanation-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    header h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .tip-card {
        padding: 1.5rem;
    }

    #tip-title {
        font-size: 1.8rem;
    }

    #tip-explanation {
        font-size: 1rem;
    }

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

    .navigation button, #toggle-explanation-btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    #category-buttons {
        gap: 0.5rem;
    }

    #category-buttons button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 2rem;
    }

    #tip-title {
        font-size: 1.5rem;
    }
}

.highlight {
    background-color: yellow;
}