/* resources.css - COMPLETE styles for Resources page (following tutorials pattern) */

/* OVERRIDE: Navigation styles for Resources page only */
.resources-header {
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    touch-action: pan-y;
}

.resources-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resources-logo {
    width: 38px;
    height: 38px;
    background: transparent;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.resources-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resources-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.resources-nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resources-nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.resources-nav-menu.active {
    display: flex;
}

.resources-nav-item {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.resources-nav-item:hover {
    background: rgba(0, 120, 73, 0.1);
    color: var(--primary);
}

/* ACTIVE NAVIGATION LINK STYLES - Resources page specific */
.resources-nav-item.resources-active {
    background: rgba(0, 120, 73, 0.05);
    color: var(--primary);
    font-weight: 600;
}

.resources-nav-item.resources-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.resources-nav-item.resources-active i {
    color: var(--secondary);
}

.resources-nav-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    transition: color 0.3s;
}

.resources-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent;
}

.resources-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s;
}

.resources-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.resources-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.resources-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (min-width: 768px) {
    .resources-menu-toggle {
        display: none;
    }
    
    .resources-nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
        padding: 0;
        width: auto;
        z-index: auto;
    }
    
    .resources-nav-item {
        color: var(--primary);
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Banner Section - Matching Tutorials Page */
.resources-banner {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    padding: 3rem 1.5rem;
    text-align: center;
    color: white;
    margin: 0;
}

.resources-banner-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.resources-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
    color: white;
}

.resources-banner-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--accent);
}

.curriculum-overview {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.curriculum-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.streams-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stream-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(0, 120, 73, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-item:hover {
    background: rgba(0, 120, 73, 0.2);
    transform: translateX(5px);
    border-color: var(--accent);
}

.stream-item i {
    color: var(--accent);
    font-size: 1.2rem;
    min-width: 24px;
}

.stream-name {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
}

.stream-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: auto;
    font-style: italic;
}

/* Resource Categories - Following Tutorials Tile Pattern */
.resource-categories {
    background: transparent;
    padding: 2rem 1.5rem;
    margin-top: 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.resource-tile {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--tile-bg) center/cover no-repeat;
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 120, 73, 0.3), rgba(239, 51, 64, 0.3));
    z-index: 1;
}

.tile-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.resource-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
    border-color: var(--accent);
}

.tile-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    margin: 0 auto 1.2rem;
}

.tile-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.tile-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
}

.tile-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-tag {
    background: rgba(0, 120, 73, 0.3);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Button styling - consistent with tutorials */
.tile-link {
    margin-top: auto;
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 160px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.tile-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Features Section */
.resources-features {
    background: transparent;
    padding: 2rem 1.5rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resources-features-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 700;
}

.resources-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resources-feature {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.resources-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.resources-feature .feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.resources-feature .feature-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.resources-feature .feature-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Subject Resources Tabs */
.subject-resources {
    background: transparent;
    padding: 2rem 1.5rem;
}

.subject-tabs {
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--accent);
    border-radius: 10px 10px 0 0;
}

.tab-button {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-button.active {
    color: var(--accent);
    background: rgba(239, 51, 64, 0.1);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.tab-button:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.tab-content {
    display: none;
    padding: 2rem;
    background: transparent;
    border-radius: 0 0 10px 10px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.subject-content {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.subject-info h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subject-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.resource-list {
    list-style: none;
    margin-bottom: 2rem;
}

.resource-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.resource-list li i {
    color: var(--accent);
    margin-top: 0.2rem;
    font-size: 0.9rem;
}

.subject-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Downloads Section */
.downloads-section {
    background: transparent;
    padding: 2rem 1.5rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.download-tile {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), var(--tile-bg) center/cover no-repeat;
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 120, 73, 0.3), rgba(239, 51, 64, 0.3));
    z-index: 1;
}

.download-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.download-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.download-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    margin: 0 auto 1.2rem;
}

.download-title {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.download-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item i {
    color: var(--accent);
    font-size: 0.8rem;
}

.download-btn {
    margin-top: auto;
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.download-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.resources-cta {
    padding: 4rem 1.5rem;
    background: transparent;
}

.cta-content {
    padding: 3rem 2rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn-primary, .cta-btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 200px;
    justify-content: center;
}

.cta-btn-primary {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.cta-btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn-secondary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (min-width: 768px) {
    .resources-banner {
        padding: 4rem 2rem;
    }
    
    .resources-banner h1 {
        font-size: 3rem;
    }
    
    .resources-banner-subtitle {
        font-size: 1.6rem;
    }
    
    .categories-grid,
    .downloads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }
    
    .resource-categories,
    .subject-resources,
    .downloads-section {
        padding: 3rem 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .streams-list {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .stream-item {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .stream-description {
        margin-left: 0;
        margin-top: 0.3rem;
    }
}

@media (min-width: 1024px) {
    .resources-banner h1 {
        font-size: 3.5rem;
    }
    
    .categories-grid,
    .downloads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .subject-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .resources-banner {
        padding: 2rem 1rem;
    }
    
    .resources-banner h1 {
        font-size: 2rem;
    }
    
    .resources-banner-subtitle {
        font-size: 1.2rem;
    }
    
    .resource-categories,
    .subject-resources,
    .downloads-section {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .resource-tile,
    .download-tile {
        min-height: 250px;
        padding: 1.2rem;
    }
    
    .tile-icon,
    .download-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .tile-title,
    .download-title {
        font-size: 1.2rem;
    }
    
    .tile-description,
    .download-description {
        font-size: 0.85rem;
    }
    
    .tab-button {
        min-width: 120px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .subject-content {
        padding: 1.5rem;
        min-height: 350px;
    }
    
    .subject-info h3 {
        font-size: 1.6rem;
    }
    
    .resource-list li {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}