
/* Extracted from articulo.php */

    /* Specific styles for articulo.php */
    .article-page-wrapper {
        background: var(--textil-primary, #050508);
        color: #fff;
        min-height: 100vh;
        padding-bottom: 100px;
        padding-top: 80px;
        /* Offset for navbar if needed */
    }

    /* Hero Section */
    .article-hero {
        display: flex;
        flex-wrap: wrap;
        min-height: 70vh;
        width: 100%;
        background: rgba(20, 20, 25, 1);
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .article-hero-left {
        flex: 1;
        min-width: 300px;
        padding: 8% 5% 8% 10%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
    }

    .article-hero-left::before {
        content: '\f10d'; /* quote left */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 20%;
        right: 10%;
        font-size: 6rem;
        color: rgba(255, 255, 255, 0.03);
    }

    .article-hero-right {
        flex: 1;
        min-width: 300px;
        background: url('https://images.unsplash.com/photo-1518605368461-1ee7c503b41e?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
        position: relative;
    }
    
    .article-hero-right::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(90deg, rgba(20, 20, 25, 1) 0%, rgba(20, 20, 25, 0) 20%);
    }
    
    .article-hero-right::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 30%;
        background: linear-gradient(180deg, transparent 0%, var(--textil-primary, #050508) 100%);
        z-index: 2;
    }

    .hero-tags {
        display: flex;
        gap: 10px;
        margin-bottom: 25px;
        flex-wrap: wrap;
    }

    .tag-pill {
        padding: 6px 16px;
        border: 1px solid rgba(251, 190, 3, 0.3);
        background: rgba(251, 190, 3, 0.05);
        border-radius: 20px;
        font-size: 0.75rem;
        color: var(--textil-accent, #fbbe03);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
    }

    .article-hero-title {
        font-family: var(--font-heading, inherit);
        font-size: clamp(2rem, 4vw, 3.5rem);
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 20px;
        color: #fff;
    }

    .article-hero-subtitle {
        color: var(--textil-text-muted, #a0a0a0);
        font-size: 1.1rem;
        margin-bottom: 20px;
        line-height: 1.6;
        max-width: 90%;
    }
    
    .read-more-btn {
        background: transparent;
        border: none;
        color: var(--textil-accent, #fbbe03);
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        padding: 0;
        margin-bottom: 30px;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    @media (max-width: 768px) {
        .article-hero-subtitle {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: 15px;
        }
        .article-hero-subtitle.expanded {
            -webkit-line-clamp: unset;
        }
    }

    .hero-author-meta {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #888;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .hero-author-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(12, 12, 18, 1) 100%);
        border: 1px solid rgba(255,255,255,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-author-avatar i {
        color: var(--textil-accent, #fbbe03);
    }

    .hero-author-meta span.author-name {
        color: #fff;
        font-weight: 600;
    }

    .hero-author-meta span i {
        color: var(--textil-accent, #fbbe03);
        margin-right: 5px;
    }

    /* Article Body */
    .article-body-section {
        padding: 60px 0;
    }

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

    .article-content {
        font-size: 1.15rem;
        line-height: 1.8;
        color: #cccccc;
        margin-bottom: 50px;
    }

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

    .article-content h2 {
        font-family: var(--font-heading, inherit);
        font-size: 2rem;
        color: #fff;
        margin-top: 40px;
        margin-bottom: 20px;
        font-weight: 700;
    }

    .article-content img,
    .article-content iframe,
    .article-content video {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        display: block;
        margin: 20px auto;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .article-content ul, 
    .article-content ol {
        margin-bottom: 25px;
        padding-left: 20px;
    }
    
    .article-content li {
        margin-bottom: 10px;
    }

    /* Share Section */
    .article-share {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px 0;
        margin-bottom: 60px;
        text-align: center;
    }

    .article-share h3 {
        font-size: 1.2rem;
        color: #fff;
        margin-bottom: 20px;
        font-weight: 600;
    }

    .share-buttons {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .share-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        font-size: 1.2rem;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
    }

    .share-btn.copy-link {
        width: auto;
        padding: 0 20px;
        border-radius: 30px;
        font-size: 0.95rem;
        gap: 8px;
    }

    .share-btn:hover {
        background: var(--textil-accent, #fbbe03);
        color: #000;
        border-color: var(--textil-accent, #fbbe03);
        transform: translateY(-3px);
    }

    /* Other Articles Section */
    .other-articles-section {
        padding: 60px 0;
        background: rgba(20, 20, 25, 0.5);
    }

    .section-title {
        font-family: var(--font-heading, inherit);
        font-size: 2.5rem;
        color: #fff;
        text-align: center;
        margin-bottom: 40px;
        font-weight: 800;
    }

    /* Reusing grid styles from blog.css if available, otherwise defining basics */
    .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .article-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 15px;
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .article-card:hover {
        transform: translateY(-10px);
    }

    .article-card-image {
        height: 200px;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        color: rgba(255, 255, 255, 0.1);
    }

    .article-card-content {
        padding: 25px;
    }

    .card-category {
        color: var(--textil-accent, #fbbe03);
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 1px;
        display: block;
        margin-bottom: 10px;
    }

    .article-card-content h3 {
        font-size: 1.3rem;
        color: #fff;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .article-card-content p {
        color: #a0a0a0;
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
    }

    .card-date {
        color: #888;
        font-size: 0.85rem;
    }

    .card-read-more {
        color: var(--textil-accent, #fbbe03);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    @media (max-width: 768px) {
        .article-hero-right {
            min-height: 400px;
        }

        .article-hero-left {
            padding: 40px 20px;
        }
    }

    /* Article Actions Bar & Audio Controls */
    .article-actions-bar {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        width: 100%;
    }

    .back-button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--textil-text-muted, #a0a0a0);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        align-self: flex-start;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.03);
        padding: 10px 18px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .back-button:hover {
        color: var(--textil-accent, #fbbe03);
        background: rgba(251, 190, 3, 0.1);
        border-color: rgba(251, 190, 3, 0.3);
        transform: translateX(-5px);
    }

    .audio-player-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        background: rgba(30, 30, 35, 0.6);
        padding: 20px 25px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
    }

    @media (min-width: 850px) {
        .audio-player-container {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }
    }

    .audio-buttons-wrapper {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

    .audio-btn {
        background: var(--textil-accent, #fbbe03);
        color: #000;
        border: none;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 700;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(251, 190, 3, 0.25);
    }

    .audio-btn:hover {
        background: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    }

    .audio-btn#stopAudioBtn {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: none;
    }

    .audio-btn#stopAudioBtn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .audio-controls {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    @media (min-width: 576px) {
        .audio-controls {
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            width: auto;
        }
    }
    
    @media (min-width: 850px) {
        .audio-controls {
            justify-content: flex-end;
            flex-grow: 1;
        }
    }

    .control-group {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 1rem;
        color: #ddd;
        background: rgba(0,0,0,0.3);
        padding: 10px 15px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.05);
        position: relative;
    }

    .control-group label {
        color: var(--textil-accent, #fbbe03);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Custom Select Styles */
    .custom-select-wrapper {
        position: relative;
        min-width: 180px;
        user-select: none;
    }
    
    .custom-select-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 10px;
        font-size: 0.95rem;
        color: #fff;
        cursor: pointer;
        background: transparent;
        border-radius: 5px;
        transition: background 0.3s ease;
    }
    
    .custom-select-trigger:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .custom-select-trigger span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 140px;
    }
    
    .custom-select-trigger i {
        font-size: 0.8rem;
        transition: transform 0.3s;
        margin-left: 10px;
    }
    
    .custom-select-wrapper.open .custom-select-trigger i {
        transform: rotate(180deg);
    }
    
    .custom-options {
        position: absolute;
        top: 110%;
        left: 0;
        right: 0;
        background: #1e1e23;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.2s ease-in-out;
        z-index: 99;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .custom-select-wrapper.open .custom-options {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .custom-option {
        padding: 10px 15px;
        color: #fff;
        font-size: 0.9rem;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .custom-option:hover {
        background: var(--textil-accent, #fbbe03);
        color: #000;
    }
    
    /* Scrollbar for custom select */
    .custom-options::-webkit-scrollbar {
        width: 6px;
    }
    .custom-options::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 10px;
    }
    
    .control-group input[type="range"] {
        width: 90px;
        accent-color: var(--textil-accent, #fbbe03);
        height: 5px;
        background: rgba(255,255,255,0.15);
        border-radius: 5px;
        outline: none;
        -webkit-appearance: none;
    }
    
    .control-group input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: var(--textil-accent, #fbbe03);
        cursor: pointer;
        box-shadow: 0 0 10px rgba(251, 190, 3, 0.5);
    }
    
    /* Text Highlight style */
    ::highlight(audio-reading) {
        background-color: var(--textil-accent, #fbbe03);
        color: #000;
    }
        /* Toast Notification */
    .t-toast-notification {
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%) translateY(50px);
        background-color: var(--textil-accent, #fbbe03);
        color: #000;
        padding: 12px 25px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 0.9rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 9999;
        text-align: center;
        max-width: 90vw;
        width: max-content;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    @media (max-width: 480px) {
        .t-toast-notification {
            font-size: 0.8rem;
            padding: 10px 20px;
            bottom: 20px;
            width: auto;
            max-width: 85vw;
        }
    }

