:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #00cec9;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --card-bg: #0f3460;
    --text-color: #e1e1e1;
    --light-text: #ffffff;
    --muted-text: #b2b2b2;
    --border-color: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-image: url('images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(22, 33, 62, 0.7);
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo-container {
    display: none;
}

header h1 {
    color: var(--light-text);
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    color: var(--light-text);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

main {
    padding: 40px 0;
}

.intro {
    margin-bottom: 40px;
    text-align: center;
}

.intro h2 {
    color: var(--light-text);
    font-size: 2rem;
    margin-bottom: 15px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.category-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--light-text);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--muted-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.category-card:hover .read-more i {
    transform: translateX(5px);
}

footer {
    background-color: var(--darker-bg);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

footer p {
    color: var(--muted-text);
    margin-bottom: 10px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Article Page Styles */
.article-container {
    background-color: var(--darker-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: 600;
}

.back-button i {
    margin-right: 5px;
}

.article-header h2 {
    color: var(--light-text);
    font-size: 1.8rem;
}

.article-section {
    margin-bottom: 40px;
}

.article-section h2 {
    color: var(--light-text);
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.product {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product h3 {
    color: var(--light-text);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.star-rating {
    color: #f1c40f;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product p {
    margin-bottom: 10px;
}

.product ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.product ul li {
    margin-bottom: 8px;
}

.product-warning {
    border-left: 4px solid #e74c3c;
}

/* Improvement Section Styling */
.improvement-section {
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.improvement-section h2 {
    color: var(--light-text);
    font-size: 1.6rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(108, 92, 231, 0.3);
}

.improvement-section h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 20px 0 10px;
}

.improvement-section h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 15px 0 8px;
}

.improvement-section p {
    margin-bottom: 15px;
}

.improvement-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.improvement-section ul li {
    margin-bottom: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .categories {
        grid-template-columns: 1fr;
    }
    
    .article-container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .article-header h2 {
        font-size: 1.6rem;
    }
}
