/* Tutorial Page Specific Styles */

/* Body Background - Match index.php hero section */
body {
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.98) 0%, rgba(224, 242, 254, 0.98) 100%);
    position: relative;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* Smooth fade-in animation for tutorial article */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-article {
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-widget {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.sidebar-widget:nth-child(1) {
    animation-delay: 0.1s;
}

.sidebar-widget:nth-child(2) {
    animation-delay: 0.2s;
}

.sidebar-widget:nth-child(3) {
    animation-delay: 0.3s;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.98) 0%, rgba(224, 242, 254, 0.98) 100%) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
    border-bottom: 2px solid rgba(59, 130, 246, 0.15);
    position: relative;
}

.breadcrumb-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

.breadcrumb-item.active {
    color: #64748b;
}

/* Tutorial Main */
.tutorial-main {
    background: linear-gradient(135deg, rgba(240, 247, 255, 0.98) 0%, rgba(224, 242, 254, 0.98) 100%);
    position: relative;
}

.tutorial-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Tutorial Article */
.tutorial-article {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tutorial-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 24px 24px 0 0;
}

.tutorial-header {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6 0%, transparent 100%) 1;
    padding-bottom: 25px;
    margin-bottom: 30px;
    position: relative;
}

.tutorial-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
}

.tutorial-title {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    color: #64748b;
    font-size: 0.95rem;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.meta-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.meta-item i {
    color: #3b82f6;
    font-size: 1rem;
}

.meta-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #2563eb;
}

.tutorial-description {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-left: 5px solid #3b82f6;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 35px;
    color: #1e40af;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.tutorial-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 16px 0 0 16px;
}

.tutorial-description i {
    color: #3b82f6;
    font-size: 1.3rem;
    margin-right: 12px;
}

.tutorial-content {
    font-size: 1.125rem;
    line-height: 1.9;
    color: #1e293b;
    font-weight: 400;
}

.tutorial-content h1,
.tutorial-content h2,
.tutorial-content h3,
.tutorial-content h4,
.tutorial-content h5,
.tutorial-content h6 {
    color: #0f172a;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.tutorial-content h2 {
    font-size: 2rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6 0%, transparent 100%) 1;
    padding-bottom: 15px;
    position: relative;
    margin-top: 50px;
}

.tutorial-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
}

.tutorial-content h3 {
    font-size: 1.65rem;
    color: #1e40af;
    margin-top: 35px;
}

.tutorial-content h4 {
    font-size: 1.4rem;
    color: #2563eb;
}

.tutorial-content p {
    margin-bottom: 24px;
    text-align: justify;
    color: #334155;
    font-size: 1.1rem;
}

.tutorial-content ul,
.tutorial-content ol {
    margin-bottom: 25px;
    padding-left: 35px;
}

.tutorial-content ul {
    list-style: none;
    padding-left: 0;
}

.tutorial-content ul li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
    color: #334155;
}

.tutorial-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
}

.tutorial-content ol li {
    margin-bottom: 12px;
    padding-left: 10px;
    line-height: 1.8;
    color: #334155;
    counter-increment: list-counter;
}

.tutorial-content ol {
    counter-reset: list-counter;
    list-style: none;
    padding-left: 0;
}

.tutorial-content ol > li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #3b82f6;
    font-size: 1.1rem;
}

.tutorial-content ol > li {
    position: relative;
    padding-left: 35px;
}

.tutorial-content blockquote {
    border-left: 5px solid #3b82f6;
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #475569;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.03) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
}

.tutorial-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.tutorial-content code {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
    border: 1px solid rgba(59, 130, 246, 0.2);
    font-weight: 500;
}

.tutorial-content pre {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 25px;
    border-radius: 16px;
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
}

.tutorial-content pre::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 16px 16px 0 0;
}

.tutorial-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}

.tutorial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 35px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-content img:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.tutorial-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.tutorial-content th,
.tutorial-content td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.tutorial-content th {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
    font-weight: 700;
    color: #1e3a8a;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tutorial-content tr {
    transition: all 0.3s ease;
}

.tutorial-content tr:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.05) 100%);
    transform: scale(1.01);
}

.tutorial-content tr:last-child td {
    border-bottom: none;
}

.tutorial-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 2px solid rgba(59, 130, 246, 0.1);
}

.tutorial-actions .btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Advertisement Marquee Styles */
.advertisements-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    padding: 10px 0;
}

.advertisements-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.advertisements-track {
    display: flex;
    animation: marquee 30s linear infinite;
    gap: 20px;
}

.advertisements-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.advertisement-item {
    flex: 0 0 auto;
    margin-right: 20px;
}

.advertisement-item img {
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: block;
}

.homepage-ad-image {
    width: auto;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.tutorial-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tutorial-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.tutorial-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.tutorial-actions .btn-outline-primary {
    border: 2px solid #3b82f6;
    color: #3b82f6;
    background: rgba(255, 255, 255, 0.9);
}

.tutorial-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    border-color: #3b82f6;
}

.tutorial-actions .btn-outline-secondary {
    border: 2px solid #64748b;
    color: #64748b;
    background: rgba(255, 255, 255, 0.9);
}

.tutorial-actions .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    color: white;
    border-color: #64748b;
}

/* Sidebar */
.tutorial-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-widget > * {
    position: relative;
    z-index: 1;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
    z-index: 0;
}

.sidebar-widget::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.sidebar-widget:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.sidebar-widget:hover::after {
    opacity: 1;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #3b82f6 0%, transparent 100%) 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 2px;
}

.widget-title i {
    color: #3b82f6;
    font-size: 1.3rem;
}

/* Table of Contents */
.toc-content {
    max-height: 450px;
    overflow-y: auto;
    padding: 5px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.02);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
    position: relative;
}

.toc-list a {
    color: #475569;
    text-decoration: none;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    border-left: 4px solid transparent;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    cursor: pointer;
    z-index: 1;
}

.toc-list a:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    transform: translateX(10px) scale(1.03);
    border-left-color: #60a5fa;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.35);
    font-weight: 600;
}

.toc-list a.active {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    font-weight: 700;
    border-left-color: #60a5fa;
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transform: translateX(8px) scale(1.02);
    border-left-width: 5px;
}

.toc-list a.active::after {
    content: '●';
    position: absolute;
    right: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* Current tutorial styling */
.toc-list li.current-tutorial a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.toc-list li.current-tutorial a.active {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    border-left-color: #60a5fa;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Tutorial icon styling */
.toc-list a i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.toc-list a:hover i,
.toc-list a.active i {
    opacity: 1;
    transform: scale(1.1);
}

/* TOC Scrollbar Styling */
.toc-content::-webkit-scrollbar {
    width: 8px;
}

.toc-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

.toc-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.toc-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    background-clip: content-box;
}

/* Related Tutorials */
.related-tutorials {
    max-height: 550px;
    overflow-y: auto;
    padding: 5px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.02);
    position: relative;
    z-index: 1;
}

.related-item {
    padding: 20px 24px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 18px;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.related-item > * {
    position: relative;
    z-index: 2;
}

.related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    opacity: 0;
    transition: opacity 0.4s ease, width 0.4s ease;
    border-radius: 18px 0 0 18px;
    pointer-events: none;
    z-index: 0;
}

.related-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #3b82f6;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.related-item:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(239, 246, 255, 0.98) 100%);
}

.related-item:hover::before {
    opacity: 1;
    width: 5px;
}

.related-item:hover::after {
    opacity: 1;
    right: 15px;
}

.related-item:last-child {
    margin-bottom: 0;
}

.related-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.related-title a {
    color: #1e293b;
    text-decoration: none;
    transition: all 0.4s ease;
    display: block;
    position: relative;
    font-weight: 600;
    line-height: 1.5;
    z-index: 2;
    cursor: pointer;
}

.related-title a:hover {
    color: #3b82f6;
    transform: translateX(8px);
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.related-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.related-meta .views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    font-weight: 600;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-radius: 12px;
    font-size: 0.8rem;
}

.related-meta .views i {
    font-size: 0.9rem;
}

.related-meta .date {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(100, 116, 139, 0.08);
    border-radius: 12px;
}

/* Quick Actions */
.quick-actions {
    padding: 5px;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.02);
    position: relative;
    z-index: 1;
}

.quick-actions .btn {
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    padding: 14px 20px;
    font-size: 0.95rem;
    z-index: 2;
    cursor: pointer;
}

.quick-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.quick-actions .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: 1;
}

.quick-actions .btn:hover::before {
    left: 100%;
}

.quick-actions .btn:hover::after {
    width: 300px;
    height: 300px;
}

.quick-actions .btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.quick-actions .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-actions .btn-outline-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.quick-actions .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    border: 2px solid #6c757d;
}

.quick-actions .btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Print Styles */
@media print {
    .tutorial-sidebar,
    .tutorial-actions,
    .breadcrumb-nav,
    .header,
    .footer {
        display: none !important;
    }
    
    .tutorial-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .tutorial-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .tutorial-content h1,
    .tutorial-content h2,
    .tutorial-content h3 {
        page-break-after: avoid;
    }
    
    .tutorial-content pre,
    .tutorial-content blockquote {
        page-break-inside: avoid;
    }
}

/* Video Container Responsive */
.tutorial-content .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-content .video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.tutorial-content .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.tutorial-content video {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-content video:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.tutorial-content iframe {
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .tutorial-sidebar {
        position: static;
        margin-top: 30px;
    }
    
    .widget-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .tutorial-main {
        padding: 30px 0 !important;
    }
    
    .tutorial-article {
        padding: 25px 20px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .tutorial-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .tutorial-meta {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        font-size: 0.9rem;
    }
    
    .tutorial-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .tutorial-content p {
        text-align: left;
        margin-bottom: 15px;
    }
    
    .tutorial-content h2 {
        font-size: 1.5rem;
        margin-top: 25px;
    }
    
    .tutorial-content h3 {
        font-size: 1.3rem;
        margin-top: 20px;
    }
    
    .tutorial-content h4 {
        font-size: 1.1rem;
    }
    
    .tutorial-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .tutorial-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .toc-content,
    .related-tutorials {
        max-height: 300px;
    }
    
    .breadcrumb-nav {
        padding: 15px 0 !important;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    
    /* Make tables scrollable on mobile */
    .tutorial-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 576px) {
    .tutorial-article {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .tutorial-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .tutorial-header {
        padding-bottom: 15px;
    }
    
    .tutorial-meta {
        font-size: 0.85rem;
    }
    
    .tutorial-description {
        padding: 15px;
        margin-bottom: 20px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .tutorial-content {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .tutorial-content h2 {
        font-size: 1.3rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .tutorial-content h3 {
        font-size: 1.15rem;
        margin-top: 18px;
    }
    
    .tutorial-content h4 {
        font-size: 1.05rem;
    }
    
    .tutorial-content pre {
        padding: 12px;
        font-size: 0.8rem;
        border-radius: 8px;
        margin: 20px 0;
    }
    
    .tutorial-content code {
        font-size: 0.85em;
        padding: 2px 6px;
    }
    
    .tutorial-content table {
        font-size: 0.85rem;
    }
    
    .tutorial-content th,
    .tutorial-content td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .tutorial-content img {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .tutorial-content blockquote {
        padding: 15px;
        margin: 20px 0;
        font-size: 0.95rem;
    }
    
    .tutorial-content ul,
    .tutorial-content ol {
        padding-left: 20px;
    }
    
    .sidebar-widget {
        padding: 15px;
        border-radius: 12px;
    }
    
    .widget-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .toc-list a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .related-item {
        padding: 12px 15px;
        margin-bottom: 10px;
    }
    
    .related-title {
        font-size: 0.95rem;
    }
    
    .related-meta {
        font-size: 0.8rem;
    }
    
    .quick-actions .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Mobile video responsiveness */
    .tutorial-content .video-container {
        margin: 15px 0;
        border-radius: 10px;
    }
    
    .tutorial-content video {
        border-radius: 10px;
    }
}

@media (max-width: 380px) {
    .tutorial-title {
        font-size: 1.3rem;
    }
    
    .tutorial-content {
        font-size: 0.9rem;
    }
    
    .tutorial-content h2 {
        font-size: 1.2rem;
    }
    
    .tutorial-content h3 {
        font-size: 1.05rem;
    }
    
    .tutorial-meta .meta-item {
        font-size: 0.8rem;
    }
}

