/* Patient Resources Page Styles */

/* Hero Section */
.patient-resources-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    position: relative;
    margin-top: 100px;
    text-align: center;
    color: var(--text-white);
    overflow: hidden;
}

.patient-resources-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.patient-resources-hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.page-header {
    font-size: var(--text-4xl);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-primary);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtext {
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-secondary);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Resources Section */
.resources-section {
    background-color: var(--bg-primary);
    padding: var(--spacing-xl) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Resource Groups */
.resource-group {
    margin-bottom: 1rem;
    padding: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.group-title {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: left;
    position: relative;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.group-title:hover {
    background-color: var(--bg-primary);
}

.group-title i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.group-title.expanded i {
    transform: rotate(180deg);
}

/* Resource Lists */
.resource-list {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--bg-primary);
}

.resource-list:not(.collapsed) {
    padding: 1.2rem 1.5rem;
    max-height: 2000px;
}

.resource-list.collapsed {
    max-height: 0;
    padding: 0;
}

.resource-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    transition: none;
    box-shadow: none;
}

.resource-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resource-item:hover {
    box-shadow: none;
    transform: none;
    border-color: transparent;
}

.resource-item a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.resource-item a:hover {
    color: var(--primary-color);
}

.resource-item i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Book and App Titles */
.book-title,
.app-title {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.4rem;
}

.app-description {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .patient-resources-hero {
        padding: 2rem 1rem;
    }
    
    .page-header {
        font-size: 2rem;
    }
    
    .hero-subtext {
        font-size: 1rem;
    }
    
    .resource-group {
        margin: 0.75rem 0;
    }
    
    .group-title {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .resource-list:not(.collapsed) {
        padding: 1rem;
    }
    
    .resource-item {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .resource-item a {
        font-size: 0.85rem;
    }
    
    .book-title,
    .app-title {
        font-size: 0.9rem;
    }
    
    .app-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .patient-resources-hero {
        padding: 1.5rem 0.75rem;
    }
    
    .page-header {
        font-size: 1.75rem;
    }
    
    .hero-subtext {
        font-size: 0.9rem;
    }
    
    .resource-group {
        margin: 0.5rem 0;
    }
    
    .group-title {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
    
    .resource-list:not(.collapsed) {
        padding: 0.75rem;
    }
    
    .resource-item {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .resource-item a {
        font-size: 0.8rem;
    }
    
    .book-title,
    .app-title {
        font-size: 0.85rem;
    }
    
    .app-description {
        font-size: 0.8rem;
    }
} 