/* Guides Index Page Styles */

/* Hero Section */
.guides-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
    overflow: hidden;
}

.guides-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.guides-hero .animated-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.2) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite;
}

.guides-hero .floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.guides-hero .floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: floatIcon 15s ease-in-out infinite;
}

.guides-hero .floating-icon::before {
    content: attr(data-icon);
}

.guides-hero .floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.guides-hero .floating-icon:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: -3s;
}

.guides-hero .floating-icon:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: -6s;
}

.guides-hero .floating-icon:nth-child(4) {
    top: 30%;
    left: 80%;
    animation-delay: -9s;
}

.guides-hero .floating-icon:nth-child(5) {
    top: 70%;
    left: 60%;
    animation-delay: -12s;
}

.guides-hero .floating-icon:nth-child(6) {
    top: 15%;
    left: 50%;
    animation-delay: -15s;
}

.guides-hero .gradient-mesh {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.05) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
    animation: meshMove 25s linear infinite;
}

.guides-hero .container {
    position: relative;
    z-index: 2;
}

.guides-hero .hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.guides-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.guides-hero .hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.guides-hero .hero-title .highlight {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for older browsers */
    display: inline-block;
    position: relative;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .guides-hero .hero-title .highlight {
        color: #3b82f6;
        background: none;
    }
}

.guides-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #cbd5e1;
    opacity: 0.9;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.guides-hero .hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.guides-hero .feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.guides-hero .feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.guides-hero .feature-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.guides-hero .feature-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.guides-hero .feature-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.guides-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.guides-hero .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.guides-hero .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.guides-hero .stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.guides-hero .stat-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.guides-hero .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.guides-hero .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guides-hero .hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.guides-hero .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.guides-hero .cta-button.primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.guides-hero .cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.guides-hero .cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.guides-hero .cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.guides-hero .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.guides-hero .scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guides-hero .scroll-arrow:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes bgShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
}

@keyframes meshMove {
    0% { transform: translateX(-50px) translateY(-50px); }
    100% { transform: translateX(50px) translateY(50px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .guides-hero {
        min-height: 80vh;
    }
    
    .guides-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .guides-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .guides-hero .hero-features {
        flex-direction: column;
        align-items: center;
    }
    
    .guides-hero .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .guides-hero .stat-item {
        padding: 1rem;
    }
    
    .guides-hero .hero-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* Filter Section */
.guides-filter {
    padding: 3rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.guides-filter .filter-controls {
    text-align: center;
}

.guides-filter .filter-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1e293b;
}

.guides-filter .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.guides-filter .filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.guides-filter .filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.guides-filter .filter-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Main Content */
.guides-main {
    padding: 4rem 0;
    background: white;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Guide Cards */
.guide-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.guide-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.guide-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guide-card:hover .card-image img {
    transform: scale(1.05);
}

.guide-card .card-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.guide-card .card-category {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-card .card-content {
    padding: 1.5rem;
}

.guide-card .card-title {
    margin-bottom: 0.75rem;
}

.guide-card .card-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.guide-card .card-title a:hover {
    color: #3b82f6;
}

.guide-card .card-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.guide-card .card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.guide-card .card-meta i {
    margin-right: 0.25rem;
}

.guide-card .card-difficulty {
    display: flex;
    align-items: center;
}

.guide-card .card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guide-card .tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 4rem 0;
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-text p {
    font-size: 1.125rem;
    color: #4083F3;
    opacity: 0.9;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.subscribe-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.subscribe-form button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscribe-form button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Animations */
@keyframes particleFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .guides-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .guides-hero .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .guides-hero .hero-stats {
        gap: 2rem;
    }
    
    .guides-hero .stat-number {
        font-size: 2rem;
    }
    
    .guides-filter .filter-buttons {
        gap: 0.5rem;
    }
    
    .guides-filter .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .newsletter-text h2 {
        font-size: 2rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form button {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .guides-hero {
        min-height: 50vh;
        padding: 2rem 0;
    }
    
    .guides-hero .hero-title {
        font-size: 2rem;
    }
    
    .guides-hero .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .guides-filter {
        padding: 2rem 0;
    }
    
    .guides-filter .filter-title {
        font-size: 1.5rem;
    }
    
    .guides-main {
        padding: 2rem 0;
    }
    
    .guide-card .card-content {
        padding: 1rem;
    }
    
    .guide-card .card-title a {
        font-size: 1.125rem;
    }
}
/* Additional Responsive Styles */
@media (max-width: 480px) {
    .guides-hero .hero-title {
        font-size: 2rem;
    }
    
    .guides-hero .hero-features {
        gap: 1rem;
    }
    
    .guides-hero .feature-item {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .guides-hero .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .guides-hero .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Performance optimizations */
.guides-hero .animated-bg,
.guides-hero .floating-elements,
.guides-hero .gradient-mesh {
    will-change: transform;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .guides-hero .animated-bg,
    .guides-hero .floating-icon,
    .guides-hero .gradient-mesh,
    .guides-hero .scroll-arrow {
        animation: none;
    }
    
    .guides-hero .cta-button,
    .guides-hero .stat-item {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .guides-hero {
        background: #000;
    }
    
    .guides-hero .hero-content {
        color: #fff;
    }
    
    .guides-hero .cta-button.primary {
        background: #fff;
        color: #000;
        border: 2px solid #fff;
    }
    
    .guides-hero .cta-button.secondary {
        background: transparent;
        color: #fff;
        border: 2px solid #fff;
    }
}