/* Estilos gerais para o site SocialStats */

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #4c6ef5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #364fc7;
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #4c6ef5;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    font-weight: 500;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #f1f3f9;
    color: #4c6ef5;
}

/* Hero section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #4c6ef5, #15aabf);
    color: #fff;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Search form */
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-form button {
    padding: 15px 25px;
    background-color: #212529;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #000;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin-top: 20px;
    display: inline-block;
}

/* Ad container */
.ad-container {
    margin: 30px auto;
    text-align: center;
    max-width: 970px;
    background-color: #f1f3f9;
    padding: 15px;
    border-radius: 4px;
}

/* Channel stats section */
.channel-stats {
    padding: 40px 0;
}

.channel-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.channel-info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.channel-category {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.channel-url a {
    font-size: 0.9rem;
    color: #4c6ef5;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    font-size: 2rem;
    color: #4c6ef5;
    margin-right: 15px;
}

.stat-content h3 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

/* Earnings section */
.earnings-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.earnings-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #212529;
}

.disclaimer {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

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

.earnings-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
}

.earnings-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #495057;
}

.earnings-range {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.min {
    color: #20c997;
}

.separator {
    margin: 0 10px;
    color: #adb5bd;
}

.max {
    color: #4c6ef5;
}

/* Growth chart */
.growth-chart {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.growth-chart h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #212529;
}

.chart-container {
    height: 300px;
}

/* Features section */
.features {
    padding: 60px 0;
    background-color: #f1f3f9;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #212529;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #4c6ef5;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #212529;
}

.feature-card p {
    color: #6c757d;
}

/* Footer */
.main-footer {
    background-color: #212529;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo p {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

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

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

.footer-links a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #343a40;
    color: #fff;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #4c6ef5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        border-radius: 4px 4px 0 0;
    }
    
    .search-form button {
        border-radius: 0 0 4px 4px;
    }
    
    .stats-grid, .earnings-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .channel-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-card, .earnings-card, .feature-card {
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}