/**
 * Android World Homepage Redesign - iDevice Style
 * CSS pentru layout identic cu idevice.ro
 */

/* ==========================================================================
   Reset și Base Styles
   ========================================================================== */

.aw-homepage-wrapper {
    width: 100%;
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.aw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.aw-main-content {
    flex: 1;
    max-width: 800px;
}

/* ==========================================================================
   Hero Post (Primul articol mare)
   ========================================================================== */

.aw-hero-post {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aw-hero-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.aw-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.aw-hero-image {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    background: #f0f0f0;
}

.aw-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aw-hero-link:hover .aw-hero-image img {
    transform: scale(1.05);
}

.aw-hero-content {
    padding: 20px;
}

.aw-hero-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
}

.aw-hero-meta {
    padding: 0 20px 20px;
    font-size: 13px;
    color: #666;
}

.aw-hero-meta .aw-author a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.aw-hero-meta .aw-author a:hover {
    color: #4CAF50;
}

/* ==========================================================================
   Grid Section (6 articole)
   ========================================================================== */

.aw-grid-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.aw-grid-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aw-grid-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.aw-grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.aw-grid-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.aw-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aw-grid-link:hover .aw-grid-image img {
    transform: scale(1.05);
}

.aw-grid-content {
    padding: 15px;
}

.aw-grid-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
}

.aw-grid-meta {
    padding: 0 15px 15px;
    font-size: 12px;
    color: #666;
}

.aw-grid-meta .aw-author a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.aw-grid-meta .aw-author a:hover {
    color: #4CAF50;
}

/* ==========================================================================
   Sidebar - ULTIMA ORA
   ========================================================================== */

.aw-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.aw-sidebar-title {
    margin: 0 0 20px;
    padding: 15px 20px;
    background: #4CAF50;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
}

.aw-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.aw-sidebar-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aw-sidebar-post:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.aw-sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.aw-sidebar-image {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

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

.aw-sidebar-link:hover .aw-sidebar-image img {
    transform: scale(1.1);
}

.aw-sidebar-content {
    flex: 1;
}

.aw-sidebar-post-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aw-sidebar-date {
    font-size: 11px;
    color: #999;
}

/* ==========================================================================
   Full Width Section
   ========================================================================== */

.aw-full-section {
    width: 100%;
    background: #fff;
    padding: 30px 0;
}

.aw-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.aw-breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.aw-breadcrumb a:hover {
    text-decoration: underline;
}

.aw-breadcrumb .separator {
    margin: 0 5px;
}

/* ==========================================================================
   Articles List
   ========================================================================== */

.aw-articles-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.aw-list-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aw-list-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.aw-list-link {
    display: flex;
    gap: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.aw-list-image {
    width: 218px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.aw-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aw-list-link:hover .aw-list-image img {
    transform: scale(1.05);
}

.aw-list-content {
    flex: 1;
}

.aw-list-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
}

.aw-list-meta {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.aw-list-meta .aw-author a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.aw-list-meta .aw-author a:hover {
    color: #4CAF50;
}

.aw-list-meta .aw-comments a {
    color: #666;
    text-decoration: none;
}

.aw-list-meta .aw-comments a:hover {
    color: #4CAF50;
}

.aw-list-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.aw-pagination {
    margin-top: 40px;
    text-align: center;
}

.aw-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.aw-pagination .page-numbers:hover,
.aw-pagination .page-numbers.current {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .aw-container {
        flex-direction: column;
    }
    
    .aw-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .aw-main-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .aw-container {
        padding: 15px;
    }
    
    .aw-grid-section {
        grid-template-columns: 1fr;
    }
    
    .aw-hero-image {
        height: 300px;
    }
    
    .aw-hero-title {
        font-size: 20px;
    }
    
    .aw-list-link {
        flex-direction: column;
    }
    
    .aw-list-image {
        width: 100%;
        height: 200px;
    }
    
    .aw-sidebar-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .aw-hero-image {
        height: 220px;
    }
    
    .aw-hero-title {
        font-size: 18px;
    }
    
    .aw-grid-title {
        font-size: 14px;
    }
    
    .aw-list-title {
        font-size: 16px;
    }
    
    .aw-sidebar-link {
        flex-direction: column;
    }
    
    .aw-sidebar-image {
        width: 100%;
        height: 150px;
    }
}

/* ==========================================================================
   Utilități
   ========================================================================== */

.aw-separator {
    opacity: 0.5;
}

/* Animații */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aw-hero-post,
.aw-grid-post,
.aw-sidebar-post,
.aw-list-post {
    animation: fadeIn 0.5s ease-out;
}
