/* ================================================
   FAQ Portal - Modern Homepage Styles
   ================================================ */

/* Hero Section Modern */
.hero-modern {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(93, 92, 222, 0.3), rgba(124, 124, 229, 0.1));
    filter: blur(40px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge i {
    color: #ffd700;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, #5D5CDE, #7c7ce5, #a8a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content > p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Search */
.hero-search {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper .search-icon {
    color: #adb5bd;
    padding: 0 15px;
    font-size: 1.2rem;
}

.search-wrapper input {
    flex: 1;
    padding: 16px 10px;
    border: none;
    font-size: 1.1rem;
    color: #212529;
    background: transparent;
    outline: none;
}

.search-wrapper button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #5D5CDE, #7c7ce5);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-wrapper button:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(93, 92, 222, 0.4);
}

.search-suggestions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.search-suggestions span {
    opacity: 0.6;
}

.search-suggestions a {
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.search-suggestions a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #5D5CDE;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 8px;
}

/* News Ticker */
.news-ticker-section {
    display: flex;
    align-items: center;
    background: #5D5CDE;
    overflow: hidden;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: #4a49b3;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticker-label i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ticker-date {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Categories Modern */
.categories-modern {
    background: white;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.section-header h2 i {
    color: #5D5CDE;
    margin-right: 10px;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card-modern:hover {
    background: white;
    border-color: var(--cat-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 70%, white));
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 4px;
    font-weight: 600;
}

.category-info span {
    font-size: 0.9rem;
    color: #6c757d;
}

.category-arrow {
    color: var(--cat-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card-modern:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Content Tabs */
.content-tabs-section {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
    padding: 80px 0;
}

.tabs-wrapper {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #5D5CDE;
}

.tab-btn.active {
    background: linear-gradient(135deg, #5D5CDE, #7c7ce5);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Content Cards */
.content-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.card-badge {
    display: inline-block;
    padding: 5px 14px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    width: fit-content;
}

.content-card h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    line-height: 1.4;
    font-weight: 600;
}

.content-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: #6c757d;
}

.card-tag, .card-views, .card-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* News Cards in Tabs */
.content-card.news-style {
    padding: 0;
    overflow: hidden;
}

.card-image {
    height: 180px;
    background: linear-gradient(135deg, #5D5CDE, #7c7ce5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    color: white;
    font-size: 3rem;
    opacity: 0.5;
}

.content-card.news-style .card-body {
    padding: 20px;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.card-meta i {
    margin-right: 5px;
}

/* How-To Cards in Tabs */
.howto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.difficulty-badge {
    padding: 4px 12px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
}

.steps-count {
    font-size: 0.85rem;
    color: #6c757d;
}

.steps-count i {
    margin-right: 5px;
}

.tab-action {
    text-align: center;
    margin-top: 30px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.3);
}

.btn-modern i {
    transition: transform 0.3s ease;
}

.btn-modern:hover i {
    transform: translateX(5px);
}

/* Popular Section */
.popular-section-modern {
    background: #f8f9fa;
    padding: 80px 0;
}

.popular-grid {
    display: grid;
    gap: 15px;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.popular-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.popular-rank {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #5D5CDE, #7c7ce5);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.popular-card:nth-child(1) .popular-rank {
    background: linear-gradient(135deg, #ffd700, #ffb800);
}

.popular-card:nth-child(2) .popular-rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.popular-card:nth-child(3) .popular-rank {
    background: linear-gradient(135deg, #cd7f32, #b87333);
}

.popular-content {
    flex: 1;
}

.popular-content h3 {
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 5px;
    font-weight: 600;
}

.popular-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.popular-category {
    font-weight: 500;
}

.popular-views {
    color: #6c757d;
}

.popular-arrow {
    color: #5D5CDE;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.popular-card:hover .popular-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Modern */
.footer-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: #5D5CDE;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5D5CDE;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    padding: 10px;
    background: transparent;
    border: none;
    color: var(--gray-700);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item {
        width: 45%;
    }
    
    .news-ticker-section {
        flex-direction: column;
    }
    
    .ticker-label {
        width: 100%;
        justify-content: center;
    }
    
    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .search-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-wrapper button {
        width: 100%;
    }
}
