/* Details Page Styles - Mobile-First, Optimized Layout */

/* Article Container */
.article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 4%;
}

/* Article Header */
.article-header {
    max-width: 900px;
    margin: 2rem auto 2rem;
    text-align: center;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.breadcrumb i {
    font-size: 0.65rem;
    color: #ccc;
}

.breadcrumb span {
    color: #1a1a1a;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Type Badge - Different styling per type */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.type-badge.blog {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
}

.type-badge.editorial {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.type-badge.news {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
}

/* Article Title */
.article-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.author-avatar {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.blog-type .author-avatar {
    color: #6a11cb;
}

.editorial-type .author-avatar {
    color: #FFD700;
}

.news-type .author-avatar {
    color: #ff4444;
}

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

.author-details strong {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 0.1rem;
}

.author-details span {
    font-size: 0.8rem;
    color: #888;
}

.meta-right {
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-right span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.meta-right i {
    color: #FFD700;
    font-size: 0.9rem;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    flex-wrap: wrap;
    border: 2px solid #e9ecef;
}

.social-share span {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:active {
    transform: scale(0.95);
}

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

.share-btn.twitter {
    background-color: #1DA1F2;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.linkedin {
    background-color: #0077b5;
}

/* Featured Image */
.featured-image {
    max-width: 100%;
    width: 100%;
    height: 400px;
    margin: 0 auto 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Article Body */
.article-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content Column */
.content-column {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #333;
}

.article-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.content-column p {
    margin-bottom: 1.25rem;
}

.content-column h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.content-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 1.75rem 0 0.75rem;
    line-height: 1.3;
}

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

.content-column li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.content-column blockquote {
    border-left: 4px solid #FFD700;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
}

.content-column .lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #FFD700;
}

/* Rating Box (for reviews) */
.rating-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid #e0e0e0;
}

.rating-box h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #1a1a1a;
}

.rating-stars {
    font-size: 1.75rem;
    color: #FFD700;
    margin: 0.75rem 0 1.5rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.pros h4,
.cons h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros h4 {
    color: #388e3c;
}

.pros h4::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #388e3c;
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
}

.cons h4 {
    color: #d32f2f;
}

.cons h4::before {
    content: '✗';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
}

.pros li,
.cons li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.pros li::before {
    content: '•';
    color: #388e3c;
    font-weight: 700;
    position: absolute;
    left: 0.5rem;
}

.cons li::before {
    content: '•';
    color: #d32f2f;
    font-weight: 700;
    position: absolute;
    left: 0.5rem;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid #e0e0e0;
}

.article-tags i {
    color: #FFD700;
    font-size: 1.1rem;
}

.tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.4rem 0.9rem;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tag:active {
    background-color: #FFD700;
    color: #000;
    border-color: #FFD700;
    transform: scale(0.98);
}

/* Author Bio */
.author-bio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.author-bio-avatar {
    font-size: 3.5rem;
    color: #6a11cb;
    text-align: center;
}

.author-bio-content {
    text-align: center;
}

.author-bio-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.author-bio-content p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.author-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.author-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-social a:active {
    background-color: #6a11cb;
    color: #fff;
    transform: scale(0.95);
}

/* Article Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn:active {
    border-color: #FFD700;
    transform: scale(0.98);
}

.nav-btn.next {
    justify-content: flex-start;
    text-align: left;
}

.nav-btn i {
    font-size: 1.3rem;
    color: #FFD700;
    flex-shrink: 0;
}

.nav-btn div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.nav-btn span {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-btn strong {
    font-size: 0.95rem;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
}

/* Related List */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-item:active {
    background-color: #f8f9fa;
    transform: scale(0.98);
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-item div {
    flex: 1;
    min-width: 0;
}

.related-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item span {
    font-size: 0.75rem;
    color: #888;
}

/* Subscribe Box - Newsletter Widget */
.subscribe-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    padding: 2.5rem 2rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
}

.subscribe-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 100%;
    animation: slide-shine 3s linear infinite;
}

@keyframes slide-shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.subscribe-box .newsletter-icon {
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem !important;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5) !important;
}

.subscribe-box .newsletter-icon i {
    font-size: 2rem !important;
    color: #000 !important;
}

.subscribe-box h3 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.75rem !important;
    color: #1a1a1a !important;
    background: linear-gradient(135deg, #1a1a1a, #333) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.subscribe-box p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.subscribe-box .newsletter-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.subscribe-box .newsletter-form input {
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    background: #fff !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.subscribe-box .newsletter-form input::placeholder {
    color: #999 !important;
}

.subscribe-box .newsletter-form input:focus {
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2) !important;
}

.subscribe-box .newsletter-form button {
    width: 100% !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.subscribe-box .newsletter-form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5) !important;
}

.subscribe-box .newsletter-form button:active {
    transform: translateY(0) !important;
}

.subscribe-box .newsletter-note {
    font-size: 0.8rem !important;
    color: #888 !important;
    font-style: italic !important;
}

/* Tablet Styles - 768px and up */
@media (min-width: 768px) {
    .article-container {
        padding: 1.5rem 4%;
    }

    .article-header {
        text-align: center;
    }

    .breadcrumb {
        justify-content: center;
        font-size: 0.9rem;
    }

    .article-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .type-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1.5rem;
    }

    .article-meta {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 0;
        border-top: 2px solid #e0e0e0;
        border-bottom: 2px solid #e0e0e0;
        gap: 1.5rem;
    }

    .meta-left {
        flex: 1;
    }

    .meta-right {
        gap: 2rem;
        flex-shrink: 0;
    }

    .meta-right span {
        font-size: 0.9rem;
    }

    .social-share {
        justify-content: center;
        gap: 1rem;
        padding: 2rem;
    }

    .social-share span {
        font-size: 1.1rem;
    }

    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .share-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .content-column {
        font-size: 1.1rem;
    }

    .content-column h2 {
        font-size: 2rem;
    }

    .content-column h3 {
        font-size: 1.5rem;
    }

    .pros-cons {
        grid-template-columns: 1fr 1fr;
    }

    .author-bio {
        flex-direction: row;
        gap: 1.5rem;
    }

    .author-bio-avatar {
        font-size: 4rem;
    }

    .author-bio-content {
        text-align: left;
    }

    .author-social {
        justify-content: flex-start;
    }

    .author-social a:hover {
        background-color: #6a11cb;
        color: #fff;
        transform: translateY(-3px);
    }

    .article-navigation {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .nav-btn {
        padding: 1.5rem;
    }

    .nav-btn:hover {
        border-color: #FFD700;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-btn.next {
        justify-content: flex-end;
        text-align: right;
    }

    .tag:hover {
        background-color: #FFD700;
        color: #000;
        border-color: #FFD700;
    }

    .related-item:hover {
        background-color: #f8f9fa;
    }

    .subscribe-box .newsletter-icon {
        width: 75px !important;
        height: 75px !important;
    }

    .subscribe-box .newsletter-form {
        gap: 1rem !important;
    }

    .subscribe-box .newsletter-form input {
        padding: 1.1rem 1.5rem !important;
    }

    .subscribe-box .newsletter-form button {
        padding: 1.1rem !important;
        font-size: 1.05rem !important;
    }
}

/* Desktop Styles - 1024px and up */
@media (min-width: 1024px) {
    .article-container {
        padding: 2rem 2%;
    }

    .article-header {
        margin-bottom: 3rem;
    }

    .article-title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    .author-avatar {
        font-size: 3rem;
    }

    .article-body {
        grid-template-columns: 1fr 340px;
        gap: 3rem;
    }

    .article-sidebar {
        position: sticky;
        top: 2rem;
        height: fit-content;
    }

    .featured-image {
        max-width: 1200px;
        height: 500px;
        margin-bottom: 3rem;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

    .sidebar-widget {
        padding: 2rem;
    }
}

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
    .article-title {
        font-size: 3.5rem;
    }
}

/* Mobile - Small screens 480px and below */
@media (max-width: 480px) {
    .subscribe-box {
        padding: 2rem 1.5rem !important;
    }

    .subscribe-box .newsletter-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .subscribe-box .newsletter-icon i {
        font-size: 1.8rem !important;
    }

    .subscribe-box h3 {
        font-size: 1.4rem !important;
    }

    .subscribe-box p {
        font-size: 0.9rem !important;
    }

    .subscribe-box .newsletter-form input {
        padding: 0.9rem 1.1rem !important;
        font-size: 0.9rem !important;
    }

    .subscribe-box .newsletter-form button {
        padding: 0.9rem !important;
        font-size: 0.95rem !important;
    }

    .subscribe-box .newsletter-note {
        font-size: 0.75rem !important;
    }
}

/* Print Styles */
@media print {
    .article-header,
    .social-share,
    .article-navigation,
    .article-sidebar,
    .breadcrumb {
        display: none;
    }

    .article-body {
        grid-template-columns: 1fr;
    }

    .content-column {
        font-size: 12pt;
    }
}
