/* === סגנונות לדף יסודות אבטחת סייבר === */

/* Hero Section */
.fundamentals-hero {
    background: linear-gradient(135deg, 
        rgba(218, 218, 226, 0.9), 
        rgba(122, 0, 255, 0.1)), 
        url('anatomyimages/cyberimage.png') center/cover;
    padding: 80px 40px;
    margin: -40px -40px 40px -40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--neon-blue);
}

.fundamentals-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(0, 229, 255, 0.1) 0%, 
        transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.fundamentals-title {
    font-size: 3.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 30px var(--neon-blue-glow);
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.fundamentals-subtitle {
    font-size: 1.3rem;
    color: var(--text-color-primary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Navigation Cards */
.content-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    padding: 35px;
    background: var(--panel-bg);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1);
    border: 1px solid var(--border-color-subtle);
}

.nav-card {
    background: var(--darker-bg);
    border: 1px solid var(--border-color-subtle);
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple-glow);
    background: rgba(122, 0, 255, 0.05);
}

.nav-icon {
    font-size: 2.5rem;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink-glow);
}

.nav-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue-glow);
}

.nav-card-desc {
    font-size: 0.9rem;
    color: var(--text-color-secondary);
    line-height: 1.5;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.article-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color-subtle);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px var(--neon-blue-glow);
    border-color: var(--neon-blue);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color-subtle);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(122, 0, 255, 0.2);
    color: var(--neon-purple);
    font-size: 0.8rem;
    border-radius: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    width: fit-content;
}

.article-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink-glow);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-description {
    font-size: 0.95rem;
    color: var(--text-color-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-color-secondary);
}

.read-time {
    color: var(--neon-blue);
}

.difficulty {
    color: var(--neon-purple);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .fundamentals-hero {
        padding: 60px 30px;
        margin: -30px -30px 30px -30px;
    }
    
    .fundamentals-title {
        font-size: 2.8rem;
    }
    
    .content-navigation {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 25px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .fundamentals-hero {
        padding: 40px 20px;
        margin: -20px -20px 20px -20px;
    }
    
    .fundamentals-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .fundamentals-subtitle {
        font-size: 1.1rem;
    }
    
    .content-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .nav-card {
        flex-direction: row;
        text-align: right;
        justify-content: flex-start;
    }
    
    .nav-icon {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-image {
        height: 180px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-description {
        font-size: 0.9rem;
    }
    
    .cyber-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .fundamentals-title {
        font-size: 1.8rem;
    }
    
    .fundamentals-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .nav-card {
        padding: 15px;
    }
    
    .nav-icon {
        font-size: 1.8rem;
    }
    
    .nav-card-title {
        font-size: 1.1rem;
    }
    
    .nav-card-desc {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Target highlighting */
section:target {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(0, 229, 255, 0.05);
    }
}