/* Mental Health Page Specific Styles */

/* Hero Section */
.mental-health-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1497250681960-ef046c08a56e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.mental-health-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mental-health-hero p {
    font-size: 1.2rem;
    max-width: 700px;
}

/* Introduction Section */
.mental-health-intro {
    padding: 3rem 0;
    text-align: center;
    background-color: #f8f9fa;
}

.mental-health-intro h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.mental-health-intro p {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Topics Grid Section */
.mental-health-topics {
    padding: 3rem 0;
    background-color: white;
}

.mental-health-topics h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.topic-card {
    background: #f8f9fa;
    padding: 2rem 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #3498db;
    color: white;
}

.topic-card:hover i,
.topic-card:hover h3 {
    color: white;
}

.topic-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.topic-card h3 {
    color: #2c3e50;
}

/* Topic Content Section */
.topic-content-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.topic-content {
    display: none;
}

.topic-content.active {
    display: block;
}

.topic-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.topic-content p {
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.technique-list {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.technique-list li {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.technique-list h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.guided-exercise {
    max-width: 600px;
    margin: 3rem auto 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.guided-exercise h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.breathing-animation {
    margin: 2rem 0;
}

.circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #3498db;
    margin: 0 auto;
    transition: all 4s ease-in-out;
}

#breathing-instruction {
    margin-top: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.anxiety-techniques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.technique-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.technique-card h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

/* Mood Tracker Section */
.mood-tracker {
    padding: 3rem 0;
    background-color: white;
}

.mood-tracker h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.mood-tracker p {
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tracker-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mood-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.mood-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

#current-rating {
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

.mood-history {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.mood-history h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mood-chart-container {
    width: 100%;
    height: 300px;
}

/* Resources Section */
.resources-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.resources-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.resource-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.resource-card ul {
    list-style: none;
    text-align: left;
}

.resource-card ul li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
}

.resource-card ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.emergency-resources {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.emergency-resources h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.emergency-resources p {
    color: #555;
    margin-bottom: 1.5rem;
}

.emergency-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emergency-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.emergency-btn:hover {
    background-color: #c0392b;
}

.emergency-btn i {
    margin-right: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mental-health-hero h1 {
        font-size: 2rem;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tracker-container {
        grid-template-columns: 1fr;
    }
    
    .emergency-contacts {
        flex-direction: column;
    }
}