/**
 * Custom CSS for the index.php page only
 * This file contains styles that will only affect the homepage
 */

/* Override main styles for the homepage */
body.homepage {
    /* Custom background for homepage */
    background-color: #f9f9f9;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

/* Hero section customization */
.homepage .hero-section {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 4rem 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.homepage .hero-image img {
    opacity: 0.15;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.homepage .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.homepage .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.homepage .hero-search {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.homepage .hero-search form {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.homepage .hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
}

.homepage .hero-search button {
    background-color: #1cc88a;
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.homepage .hero-search button:hover {
    background-color: #17a673;
}

.homepage .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.homepage .feature-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage .feature-box h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.homepage .feature-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.homepage .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.homepage .hero-buttons .btn-primary {
    background-color: #1cc88a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.homepage .hero-buttons .btn-primary:hover {
    background-color: #17a673;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.homepage .hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.homepage .hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Section headers */
.homepage .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.homepage .section-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #153c10
    margin-bottom: 0.5rem;
}

.homepage .section-description {
    font-size: 1.1rem;
    color: #171515;
    max-width: 700px;
    margin: 0 auto;
}

.homepage .section-header.with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.homepage .section-header.with-action .section-subtitle {
    margin-bottom: 0.25rem;
}

.homepage .view-all {
    color: #4e73df;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.homepage .view-all:hover {
    color: #224abe;
}

.homepage .view-all i {
    font-size: 0.8rem;
}

/* Featured networks section */
.homepage .featured-networks {
    padding: 4rem 0;
}

.homepage .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    border-color: red;
}

/* Network cards */
.homepage .network-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #141715;
    display: flex;
    flex-direction: column;
}

.homepage .network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.homepage .network-card.premium {
    border-top: 4px solid #4e73df;
}

.homepage .network-card img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin: 1.5rem auto;
}

.homepage .network-info {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
}

.homepage .network-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.homepage .rating-summary {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

.homepage .rating-summary .stars {
    color: #ffc107;
    margin-right: 0.5rem;
}

.homepage .review-count {
    color: #666;
    font-size: 0.9rem;
}

.homepage .network-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.homepage .network-meta span {
    background-color: #73e1e2;
    color: #04060c;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.homepage .network-description {
    color: #090909;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.homepage .network-actions {
    padding: 1rem 1.5rem;
    background-color: #f9f9f9;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.homepage .network-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.homepage .network-actions .btn-primary {
    background-color: #4e73df;
    color: white;
}

.homepage .network-actions .btn-primary:hover {
    background-color: #224abe;
}

.homepage .network-actions .btn-outline {
    border: 1px solid #d1d3e2;
    color: #666;
    align-self: center;
}

.homepage .network-actions .btn-outline:hover {
    background-color: #f0f0f0;
}

/* Categories section */
.homepage .categories-section {
    padding: 4rem 0;
    background-color: #eeeff0;
    border-radius: 20px;
    margin: 2rem 0;
}

.homepage .category-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.homepage .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.homepage .category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.homepage .category-card h3,
.homepage .category-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.homepage .category-count {
    color: #666;
    font-size: 0.9rem;
}

.homepage .view-all-categories {
    text-align: center;
    margin-top: 2rem;
}

.homepage .view-all-categories .btn {
    background-color: transparent;
    border: 2px solid #4e73df;
    color: #4e73df;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.homepage .view-all-categories .btn:hover {
    background-color: #4e73df;
    color: white;
}

/* Latest reviews section */
.homepage .latest-reviews {
    padding: 4rem 0;
}

.homepage .reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.homepage .review-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.homepage .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.homepage .review-header {
    margin-bottom: 1.5rem;
}

.homepage .reviewer-info {
    display: flex;
    align-items: center;
}

.homepage .reviewer-avatar,
.homepage .avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    background-color: #4e73df;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    overflow: hidden;
}

.homepage .reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage .reviewer-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.homepage .reviewer-badge {
    display: inline-block;
    background-color: #1cc88a;
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    margin-right: 0.5rem;
}

.homepage .reviewer-type {
    font-size: 0.8rem;
    color: #666;
}

.homepage .review-content {
    flex: 1;
}

.homepage .review-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.homepage .review-date {
    font-size: 0.8rem;
    color: #430000;
    margin-bottom: 1rem;
}

.homepage .review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* Network Owner CTA */
.homepage .network-owner-cta {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    padding: 4rem 0;
    border-radius: 20px;
    margin: 4rem 0;
    color: white;
}

.homepage .cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.homepage .cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.homepage .cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.homepage .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.homepage .cta-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.homepage .cta-buttons .btn-primary {
    background-color: white;
    color: #4e73df;
}

.homepage .cta-buttons .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.homepage .cta-buttons .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.homepage .cta-buttons .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Testimonials section */
.homepage .testimonials-section {
    padding: 4rem 0;
}

.homepage .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.homepage .testimonial-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #eaeaea;
}

.homepage .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.homepage .testimonial-quote {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.homepage .testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: #4e73df;
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
}

.homepage .testimonial-author {
    display: flex;
    align-items: center;
}

.homepage .testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.homepage .author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333;
}

.homepage .author-info p {
    font-size: 0.8rem;
    color: #666;
}

/* Final CTA */
.homepage .final-cta {
    background: linear-gradient(135deg, #1c3cc8 0%, #17a673 100%);
    padding: 4rem 0;
    border-radius: 20px;
    margin: 4rem 0;
    color: white;
}

.homepage .final-cta .cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.homepage .final-cta .cta-buttons .btn-primary {
    background-color: white;
    color: #1cc88a;
}

.homepage .final-cta .cta-buttons .btn-secondary {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.homepage .final-cta .cta-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .homepage .section-header.with-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .homepage .view-all {
        align-self: flex-start;
    }
    
    .homepage .categories-grid,
    .homepage .reviews-grid,
    .homepage .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .homepage .hero-title {
        font-size: 2.2rem;
    }
    
    .homepage .hero-subtitle {
        font-size: 1rem;
    }
    
    .homepage .section-subtitle {
        font-size: 1.5rem;
        color: black;
    }
    
    .homepage .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .homepage .cta-content p {
        font-size: 1rem;
    }
    
    .homepage .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .homepage .hero-section {
        padding: 3rem 0;
    }
    
    .homepage .hero-title {
        font-size: 1.8rem;
    }
    
    .homepage .hero-search form {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .homepage .hero-search input {
        border-radius: 10px 10px 0 0;
        padding: 0.75rem 1rem;
    }
    
    .homepage .hero-search button {
        border-radius: 0 0 10px 10px;
        padding: 0.75rem;
    }
    
    .homepage .hero-buttons {
        flex-direction: column;
    }
    
    .homepage .cta-buttons {
        flex-direction: column;
    }
    
    .homepage .categories-grid,
    .homepage .reviews-grid,
    .homepage .testimonials-grid {
        grid-template-columns: 1fr;
    }
}