/* Article-specific styles */

/* Article Header */
.article-header {
    position: relative;
    background: linear-gradient(90deg, #5e72e4 0%, #825ee4 50%, #a47dea 100%);
    padding: 120px 0 80px;
    color: white;
    overflow: hidden;
    text-align: center;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffd93d;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.article-date,
.read-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-excerpt {
    max-width: 800px;
    margin: 0 auto;
}

.article-excerpt p {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    font-weight: 400;
}

/* Article Author */
.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

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

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Article Content */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-content {
    position: relative;
    background: #ffffff;
    padding: 40px 0;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Featured Image */
.article-featured-image {
    margin: -60px auto 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    max-height: 500px;
}

/* Article Images */
.article-image-right {
    float: right;
    margin: 5px 0 20px 30px;
    width: 45%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image-left {
    float: left;
    margin: 5px 30px 20px 0;
    width: 45%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image-right img,
.article-image-left img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* Format specific pentru imagini cu unelte */
.article-image-right img[alt*="unelte"],
.article-image-left img[alt*="unelte"] {
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
}

/* Format specific pentru imagini cu persoane */
.article-image-right img[alt*="copil"],
.article-image-left img[alt*="copil"],
.article-image-right img[alt*="familie"],
.article-image-left img[alt*="familie"] {
    object-fit: cover;
    aspect-ratio: 3/4;
}

.image-caption {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    color: #4a5568;
    font-size: 0.9rem;
    font-style: italic;
}

/* Headings */
.article-content h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #825ee4;
    margin: 50px 0 20px 0;
    line-height: 1.3;
    clear: both;
}

.article-content h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin: 40px 0 15px 0;
    line-height: 1.3;
    clear: both;
}

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

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #2d3748;
    font-weight: 600;
}

/* Article Tip Box */
.article-tip {
    background: #f0f9ff;
    border-left: 4px solid #4299e1;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 10px 10px 0;
}

.article-tip h3 {
    color: #2b6cb0;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.article-tip p {
    margin-bottom: 0;
    color: #2d3748;
}

/* Article Quote */
.article-quote {
    padding: 30px 0;
    position: relative;
}

.article-quote blockquote {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #4a5568;
    font-style: italic;
    position: relative;
    padding: 0 40px;
    margin: 0;
    text-align: center;
}

.article-quote blockquote::before,
.article-quote blockquote::after {
    content: '"';
    font-size: 4rem;
    color: #825ee4;
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.article-quote blockquote::before {
    top: -20px;
    left: 0;
}

.article-quote blockquote::after {
    bottom: -50px;
    right: 0;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 50px 0;
    border: 2px solid rgba(130, 94, 228, 0.1);
    clear: both;
}

.article-cta h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: #825ee4;
    margin-bottom: 15px;
}

.article-cta p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #5e72e4, #825ee4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(130, 94, 228, 0.3);
}

/* Article Footer */
.article-footer {
    border-top: 1px solid rgba(130, 94, 228, 0.1);
    padding-top: 30px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f8f9fa;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #825ee4;
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 0.9rem;
    color: #4a5568;
}

.share-button {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.pinterest {
    background: #e60023;
    color: white;
}

.share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    margin-bottom: 60px;
    clear: both;
}

.related-articles h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #825ee4;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(130, 94, 228, 0.1);
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(130, 94, 228, 0.1);
}

.related-card h3 {
    padding: 20px;
    color: #2d3748;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

.related-card-info {
    padding: 0 20px 20px;
    color: #718096;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(130, 94, 228, 0.05);
    margin-top: -5px;
    padding-top: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-image-right,
    .article-image-left {
        width: 50%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 100px 0 60px;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-content h2 {
        font-size: 1.8rem;
    }
    
    .article-content h3 {
        font-size: 1.4rem;
    }
    
    .article-image-right,
    .article-image-left {
        float: none;
        width: 100%;
        max-width: 500px;
        margin: 30px auto;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
    
    .article-quote blockquote {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .article-cta {
        padding: 25px 15px;
    }
    
    .article-cta h3 {
        font-size: 1.3rem;
    }
}

/* Print styles */
@media print {
    .article-image-right,
    .article-image-left {
        max-width: 300px;
    }
    
    .article-cta,
    .article-footer,
    .related-articles {
        display: none;
    }
    
    .article-header {
        background: white !important;
        color: black !important;
    }
    
    .article-header h1 {
        color: black !important;
    }
}