/* style.css - Main stylesheet for Orami-style website */

/* ==================== RESET & BASICS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #F7F7F7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA5C0 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -1px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255,255,255,0.2);
}

.main-nav img {
    width: 20px;
    height: 20px;
}

.main-nav .badge {
    background: #FF4757;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 3px;
}

/* ==================== HERO BANNER ==================== */
.hero-banner {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    padding: 40px 0;
    margin-bottom: 30px;
}

.banner-content {
    text-align: center;
}

.banner-image {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    background: white;
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.moira-assistant {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.moira-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    padding: 3px;
}

.moira-text {
    text-align: left;
}

.moira-question {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.moira-help {
    font-size: 14px;
    color: #666;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #FF6B9D;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 15px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-box input::placeholder {
    color: #999;
}

.search-btn {
    background: linear-gradient(135deg, #FF6B9D 0%, #C44569 100%);
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #C44569 0%, #FF6B9D 100%);
}

/* ==================== CATEGORIES SECTION ==================== */
.categories-section {
    padding: 40px 0;
    background: white;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FF6B9D;
    display: inline-block;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: white;
    border: 2px solid #F0F0F0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #FF6B9D;
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA5C0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* ==================== ARTICLES SECTION ==================== */
.articles-section {
    padding: 40px 0;
    background: white;
    margin-bottom: 30px;
}

.featured-article-main {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.featured-article-main:hover {
    transform: translateY(-5px);
}

.featured-article-main .article-image {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.featured-article-main .article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-main .article-content {
    padding: 25px;
    background: white;
}

.featured-article-main h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* ==================== ARTICLES GRID ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.article-card .article-image {
    position: relative;
    padding-bottom: 60%;
    overflow: hidden;
    background: #F0F0F0;
}

.article-card .article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-info {
    padding: 20px;
}

.article-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #FF6B9D;
    color: white;
}

/* Category Color Variants */
.article-category.kehamilan { background: #FF6B9D; }
.article-category.bayi { background: #FFB6C1; color: #333; }
.article-category.balita-anak { background: #87CEEB; }
.article-category.gaya-hidup { background: #FFD700; color: #333; }
.article-category.kesehatan { background: #98D8C8; }
.article-category.islam { background: #9370DB; }
.article-category.fashion { background: #FF69B4; }

.bookmark-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bookmark-btn:hover {
    transform: scale(1.1);
    background: #FF6B9D;
}

.bookmark-btn:hover svg path {
    fill: white;
}

/* ==================== SINGLE ARTICLE PAGE ==================== */
.single-article {
    background: white;
    padding: 40px 0;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.article-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 20px 0;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

.article-featured-image {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 30px 0 15px;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-footer {
    max-width: 800px;
    margin: 40px auto;
    padding-top: 30px;
    border-top: 2px solid #F0F0F0;
}

.share-buttons {
    text-align: center;
}

.share-buttons p {
    font-weight: 600;
    margin-bottom: 15px;
}

.share-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn.facebook { background: #3B5998; color: white; }
.share-btn.twitter { background: #1DA1F2; color: white; }
.share-btn.whatsapp { background: #25D366; color: white; }

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ==================== RELATED ARTICLES ==================== */
.related-articles {
    background: #F7F7F7;
    padding: 40px 0;
}

.related-articles h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ==================== CATEGORY PAGE ==================== */
.category-page {
    padding: 40px 0;
    background: white;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-top: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination a {
    padding: 10px 20px;
    background: #FF6B9D;
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #C44569;
    transform: translateY(-2px);
}

.page-number {
    font-weight: 600;
    color: #666;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #2C3E50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #BDC3C7;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FF6B9D;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    background: #34495E;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #FF6B9D;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495E;
    color: #95A5A6;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav a {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
}
