:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #667eea;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: #333;
    --text-light: #e0e0e0;
    --bg-light: #f8f9fa;
    --white: #fff;
    --border-radius: 10px;
    --shadow: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo a {
    color: var(--white);
    text-decoration: none;
}

.logo a:hover {
    color: var(--accent-color);
}

.nav-desktop {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-desktop li {
    position: relative;
}

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: var(--transition);
    border-radius: 5px;
    display: block;
}

.nav-desktop a:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    list-style: none;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-mobile.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-login,
.btn-register {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-login {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-login:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-register {
    background: var(--accent-gradient);
    color: var(--white);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: var(--white);
}

.nav-mobile li {
    margin-bottom: 15px;
}

.nav-mobile li:last-child {
    margin-bottom: 0;
}

.nav-mobile a {
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-mobile a:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
}

main {
    padding: 40px 0;
    min-height: calc(100vh - 400px);
}

.hero-section {
    background: var(--accent-gradient);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.content-section {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transition: var(--transition);
}

.content-section:hover {
    box-shadow: var(--shadow-hover);
}

.content-section h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.content-section h3 {
    color: var(--secondary-color);
    font-size: 24px;
    margin: 30px 0 15px;
}

.content-section p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.content-section ul, 
.content-section ol {
    margin: 20px 0 20px 30px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-section strong {
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    margin-bottom: 0;
    color: #555;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    margin-top: 20px;
    border: none;
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: var(--white);
}

.cta-button:active {
    transform: scale(0.98);
}

footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p, 
.footer-section a {
    color: var(--text-light);
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom p {
    color: var(--text-light);
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: var(--white);
    color: var(--text-color);
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--accent-color);
    color: var(--white);
}

.pagination .current {
    background: var(--accent-color);
    color: var(--white);
}

.post-meta {
    font-size: 14px;
}

.post-content {
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-date {
    color: #999;
    font-size: 12px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.comment-form .submit {
    background: var(--accent-gradient);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.comment-form .submit:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: var(--primary-color);
    color: var(--white);
}

table tr:nth-child(even) {
    background: var(--bg-light);
}

@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 36px;
    }
    
    .hero-section p {
        font-size: 18px;
    }
    
    .content-section h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .nav-buttons {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-buttons {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    .mobile-buttons .btn-login,
    .mobile-buttons .btn-register {
        flex: 1;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    table {
        font-size: 14px;
    }
    
    table th,
    table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 26px;
    }
    
    .logo h1 {
        font-size: 22px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

::selection {
    background: var(--accent-color);
    color: var(--white);
}
