/**
 * V4U Home Page Styles
 *
 * @package V4U
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.v4u-home-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.v4u-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.v4u-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.v4u-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.v4u-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin: 0;
}

.v4u-main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.v4u-main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.v4u-main-nav a:hover {
    color: #2271b1;
}

/* Hero Section */
.v4u-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.v4u-hero-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.v4u-hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.v4u-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.v4u-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.v4u-btn-primary {
    background: #2271b1;
    color: white;
}

.v4u-btn-primary:hover {
    background: #135e96;
    color: white;
}

.v4u-btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.v4u-btn-outline:hover {
    background: white;
    color: #2271b1;
}

/* Section Styles */
.v4u-announcements,
.v4u-promoted-content,
.v4u-popular-content,
.v4u-cta {
    padding: 60px 0;
}

.v4u-announcements {
    background: white;
}

.v4u-promoted-content {
    background: #f8f9fa;
}

.v4u-popular-content {
    background: white;
}

.v4u-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

/* Section Headers */
.v4u-announcements h3,
.v4u-promoted-content h3,
.v4u-popular-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.v4u-cta h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.v4u-cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Announcements Grid */
.v4u-announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.v4u-announcement {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.v4u-announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.v4u-announcement-date {
    color: #666;
    font-size: 14px;
}

.v4u-announcement-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.v4u-announcement h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.v4u-announcement p {
    color: #666;
    line-height: 1.6;
}

/* Content Grid */
.v4u-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.v4u-content-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v4u-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.v4u-content-card.v4u-promoted {
    border: 2px solid #ffd700;
}

.v4u-content-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.v4u-content-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4u-placeholder-thumbnail {
    width: 100%;
    height: 100%;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 48px;
}

.v4u-content-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.v4u-promoted-badge {
    background: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.v4u-content-info {
    padding: 20px;
}

.v4u-content-creator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.v4u-content-creator img {
    border-radius: 50%;
}

.v4u-content-creator span {
    font-weight: 600;
    color: #333;
}

.v4u-content-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.v4u-content-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.v4u-content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.v4u-content-date,
.v4u-content-views {
    color: #666;
}

.v4u-content-free {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.v4u-content-price {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Footer */
.v4u-footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.v4u-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.v4u-footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.v4u-footer-section ul {
    list-style: none;
}

.v4u-footer-section ul li {
    margin-bottom: 10px;
}

.v4u-footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.v4u-footer-section ul li a:hover {
    color: white;
}

.v4u-footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v4u-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .v4u-main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .v4u-hero-content h2 {
        font-size: 36px;
    }
    
    .v4u-hero-content p {
        font-size: 18px;
    }
    
    .v4u-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .v4u-content-grid {
        grid-template-columns: 1fr;
    }
    
    .v4u-announcements-grid {
        grid-template-columns: 1fr;
    }
    
    .v4u-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .v4u-container {
        padding: 0 15px;
    }
    
    .v4u-hero {
        padding: 60px 0;
    }
    
    .v4u-hero-content h2 {
        font-size: 28px;
    }
    
    .v4u-announcements,
    .v4u-promoted-content,
    .v4u-popular-content,
    .v4u-cta {
        padding: 40px 0;
    }
} 