/* Article Page Styles */

.article-page {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: articleGradient 20s ease infinite;
}

@keyframes articleGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 50px;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

.breadcrumb a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Article Content */
.article-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 4rem;
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe);
    background-size: 300% 100%;
    animation: articleHeaderGradient 3s ease infinite;
}

@keyframes articleHeaderGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Article Header */
.article-header {
    padding: 4rem 4rem 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.article-header .category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.article-header .date,
.article-header .read-time {
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-header .date::before {
    content: '📅';
    font-size: 0.9rem;
}

.article-header .read-time::before {
    content: '⏱️';
    font-size: 0.9rem;
}

.article-header h1 {
    font-size: 3.2rem;
    color: #333;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    font-weight: 800;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h4 {
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.author-title {
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
}

.article-header .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.article-header .tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-header .tag:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Article Image */
.article-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-image:hover img {
    transform: scale(1.02);
}

/* Article Body */
.article-body {
    padding: 4rem;
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.article-intro {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 20px;
    border-left: 4px solid #667eea;
}

.lead {
    font-size: 1.3rem;
    color: #555;
    font-weight: 500;
    line-height: 1.7;
    margin: 0;
}

.article-body h2 {
    font-size: 2.2rem;
    color: #333;
    margin: 3rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #667eea, #764ba2) border-box;
    border-bottom: 3px solid;
    font-weight: 700;
    position: relative;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.article-body h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 2.5rem 0 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.article-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.article-body h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 1.5rem 0 0.75rem;
}

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

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

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #667eea;
}

/* Info Boxes */
.info-box, .warning-box {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box {
    background: #fff5f5;
    border-left-color: #e74c3c;
}

.info-box h3, .warning-box h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box i {
    color: #667eea;
}

.warning-box i {
    color: #e74c3c;
}

.info-box ul, .warning-box ul {
    margin-bottom: 0;
}

/* Blockquote */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    margin: 2rem 0;
    padding: 1.5rem;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    border-radius: 8px;
}

/* Workout Structure */
.workout-structure {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.structure-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.structure-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.structure-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.structure-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.structure-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.structure-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Workout Plans */
.workout-plan {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.workout-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.workout-header h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.workout-header p {
    margin: 0;
    color: #667eea;
    font-weight: 600;
}

.workout-plan ol {
    margin: 0;
    padding-left: 1.5rem;
}

.workout-plan li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.workout-plan li:last-child {
    border-bottom: none;
}

/* Mistakes Grid */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mistake-item {
    background: rgba(255, 245, 245, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 202, 202, 0.5);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.1);
    transition: all 0.3s ease;
}

.mistake-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.15);
}

.mistake-item h4 {
    color: #e74c3c;
    margin: 0 0 0.75rem 0;
}

.mistake-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Article Footer */
.article-footer {
    padding: 3rem 4rem 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.article-actions {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 25px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.like-btn:hover, .like-btn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.like-btn.active i {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.share-btn:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.bookmark-btn:hover, .bookmark-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-color: #f39c12;
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.bookmark-btn.active i {
    animation: bookmarkSave 0.4s ease-in-out;
}

@keyframes bookmarkSave {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Related Articles */
.related-articles h3 {
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.related-item {
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    transform: translateY(-2px);
}

.related-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.related-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.related-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Back to Blog */
.back-to-blog {
    text-align: center;
    margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-header {
        padding: 3rem 2rem;
    }

    .article-header h1 {
        font-size: 2.8rem;
    }

    .article-body {
        padding: 3rem 2rem;
    }

    .article-body h2 {
        font-size: 2rem;
    }

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

@media (max-width: 768px) {
    .article-page {
        padding-top: 60px;
    }

    .breadcrumb {
        padding: 0.8rem 1.5rem;
        margin-bottom: 2rem;
        font-size: 0.9rem;
    }

    .article-header {
        padding: 2.5rem 2rem;
    }

    .article-header h1 {
        font-size: 2.2rem;
    }

    .article-header .article-meta {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .author-info {
        padding: 1rem;
        gap: 1rem;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
    }

    .article-image {
        height: 300px;
    }

    .article-body {
        padding: 2.5rem 2rem;
        font-size: 1rem;
    }

    .article-intro {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .article-body h2 {
        font-size: 1.8rem;
        margin: 2.5rem 0 1rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
        margin: 2rem 0 1rem;
    }

    .article-footer {
        padding: 2rem;
    }

    .article-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .article-header {
        padding: 2rem 1.5rem;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-header .article-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .article-image {
        height: 250px;
    }

    .article-body {
        padding: 2rem 1.5rem;
    }

    .article-intro {
        padding: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.2rem;
    }

    .article-footer {
        padding: 1.5rem;
    }
}
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-footer {
        padding: 1.5rem;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .structure-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-item {
        flex-direction: column;
    }
    
    .related-item img {
        width: 100%;
        height: 150px;
    }
}
