/* Import Audiowide Font */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: white;
    background-color: #2b2d32;
}

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

/* Header Styles */
.header {
    background: #2b2d32;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #3a3c41;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo Image Style */
.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(1);
}

/* Logo Text Style - Audiowide Font for NERDAGES */
.logo-text {
    font-family: 'Audiowide', cursive;
    font-weight: normal;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #b8b9bb;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #00aeef;
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2b2d32 0%, #00aeef 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 10px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    margin: 4rem 0;
}

.features h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #3a3c41;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.feature-card h4 {
    color: #00aeef;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #00aeef;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn:hover {
    background: #0098d1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 174, 239, 0.4);
}

.btn-secondary {
    background: #2b2d32;
}

.btn-secondary:hover {
    background: #1e2024;
    box-shadow: 0 5px 15px rgba(43, 45, 50, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: #00aeef;
}

.btn-primary:hover {
    background: #0098d1;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #3a3c41;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #2b2d32;
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00aeef;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    color: #b8b9bb;
}

.form-footer a {
    color: #00aeef;
    text-decoration: none;
}

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

/* Login Container */
.login-container {
    max-width: 400px;
}

/* Dashboard Styles */
.dashboard h2 {
    margin-bottom: 2rem;
    color: white;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-card {
    background: #3a3c41;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    height: fit-content;
    color: white;
}

.profile-card h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile-card p {
    margin-bottom: 0.8rem;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links h4 {
    margin-bottom: 1rem;
    color: #00aeef;
}

.articles-section {
    background: #3a3c41;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.articles-section h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.articles-list {
    margin-top: 2rem;
}

.article-card {
    background: #2b2d32;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #00aeef;
    color: white;
}

.article-card h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.article-meta {
    font-size: 0.9rem;
    color: #b8b9bb;
    margin-bottom: 1rem;
}

.article-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.no-articles {
    text-align: center;
    padding: 2rem;
    color: #b8b9bb;
}

/* Articles Page */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: #3a3c41;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    color: white;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    margin-bottom: 1rem;
}

.article-title a {
    color: #2b2d32;
    text-decoration: none;
}

.article-title a:hover {
    color: #00aeef;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.article-excerpt {
    margin-bottom: 1rem;
    color: #b8b9bb;
    line-height: 1.6;
}

.read-more {
    color: #00aeef;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Single Article Page */
.single-article {
    max-width: 800px;
    margin: 0 auto;
    background: #3a3c41;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    color: white;
}

.article-header {
    padding: 2rem;
    border-bottom: 1px solid #555;
}

.article-header h1 {
    margin-bottom: 1rem;
    color: white;
    font-size: 2.5rem;
}

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

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: white;
}

.publish-date {
    font-size: 0.9rem;
    color: #b8b9bb;
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.single-article .article-content {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.author-sidebar {
    max-width: 800px;
    margin: 2rem auto;
}

.author-card {
    background: #3a3c41;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    color: white;
}

.author-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 1rem 0;
}

.author-real-name {
    color: #b8b9bb;
    font-style: italic;
}

.author-bio {
    margin-top: 1rem;
    color: #e0e0e0;
}

.navigation-buttons {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

/* Form Enhancements */
.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Error Messages */
.error-message {
    background: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    background: #00aeef;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer */
.footer {
    background: #2b2d32;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .single-article .article-header h1 {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .single-article .article-content {
        padding: 1.5rem;
    }
}
