.article-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.full-article {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.article-hero-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(7, 7, 7, 0.95) 100%
    );
}

.article-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 1;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, #ff7033 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.article-hero-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.article-hero-content .article-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.0rem;
    max-width: 700px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.article-meta-row span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta-row svg {
    opacity: 0.8;
}

.article-header-no-image {
    padding: 3rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-color);
}

.article-header-no-image .article-category {
    margin-bottom: 1rem;
}

.article-header-no-image h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-header-no-image .article-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-header-no-image .article-meta-row {
    color: var(--text-secondary);
}

.article-container {
    padding: 2.5rem 3rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, #2a2a2a 100%);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content > p:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: 600;
    float: left;
    line-height: 1;
    margin-right: 0.5rem;
    margin-top: 0rem;
    color: var(--accent);
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2, 
.article-content h3,
.article-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 1.75rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--accent);
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.08) 0%, rgba(255, 85, 0, 0.03) 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content pre,
.article-content code {
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.article-content code {
    padding: 0.2rem 0.4rem;
    font-size: 0.9em;
}

.article-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    padding: 0;
}

.article-video {
    margin: 3rem 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.article-source-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-source-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.1) 0%, rgba(255, 85, 0, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 85, 0, 0.2);
    transition: all 0.3s ease;
}

.article-source-link a:hover {
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.2) 0%, rgba(255, 85, 0, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.2);
}

.article-back {
    margin-top: 2rem;
    text-align: center;
}

.article-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.article-back a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(-4px);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .article-hero-wrapper {
        height: 350px;
    }
    
    .article-hero-content {
        padding: 2rem;
    }
    
    .article-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .article-hero-content .article-subtitle {
        font-size: 1rem;
    }
    
    .article-header-no-image {
        padding: 2rem;
    }
    
    .article-header-no-image h1 {
        font-size: 1.75rem;
    }
    
    .article-container {
        padding: 1.5rem;
    }
    
    .article-meta-row {
        gap: 1rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content > p:first-of-type::first-letter {
        font-size: 2.5rem;
    }
}

.article-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.comments-title svg {
    color: var(--accent);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.comment-item:hover {
    border-color: rgba(255, 85, 0, 0.3);
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #ff7033 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.comment-admin-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #ff7033 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
    word-wrap: break-word;
}

.comments-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

.comment-form-wrapper {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-form-wrapper h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.comment-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.comment-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.comment-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

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

.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.submit-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, #ff7033 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.comment-login-prompt {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.comment-login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.login-link,
.register-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.login-link:hover,
.register-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .comment-avatar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}