/* ====================================================
   SHEERPME WIKI - ENHANCED CSS FRAMEWORK
   Modern, Professional Styling for All Wiki Pages
   ==================================================== */

/* =====================================
   CORE LAYOUT & HEADERS
   ===================================== */

.wiki-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border-left: 6px solid #4f46e5;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.12);
    position: relative;
    overflow: hidden;
}

img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or 'cover' */
}

.wiki-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.wiki-header h2 {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.wiki-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* =====================================
   VIDEO SECTIONS & TUTORIALS
   ===================================== */

.video-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.video-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

.video-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Responsive video container for iframe embeds */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0;
}

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

/* Remove padding/margin from placeholder when video is embedded */
.video-placeholder:has(.video-container) {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

/* Smooth scrolling for the whole document */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
}

/* =====================================
   SECTIONS & CONTENT ORGANIZATION
   ===================================== */

.wiki-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin: 3rem 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.wiki-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.wiki-section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.wiki-section-header:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b47a8 100%);
}

.wiki-section-header::after {
    content: '▼';
    position: absolute;
    left: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    transition: transform 0.3s ease;
    z-index: 3;
}

.wiki-section.collapsed .wiki-section-header::after {
    transform: translateY(-50%) rotate(-90deg);
}

.wiki-section.collapsed .wiki-section-content {
    display: none;
}

.wiki-section.collapsed {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wiki-section-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.wiki-section-header h3 {
    margin: 0;
    margin-left: 2.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.wiki-section-number {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.3);
}

.wiki-section-content {
    padding: 0.5rem;
}

.wiki-subsection {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wiki-subsection h4 {
    color: #065f46;
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =====================================
   FEATURE CARDS & GRIDS
   ===================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-weight: 600;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =====================================
   STEP LISTS & NUMBERED GUIDES
   ===================================== */

.step-list {
    counter-reset: step-counter;
    margin: 2rem 0;
}

.step-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 4rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2rem 2rem 2rem 5rem;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* =====================================
   DATA TABLES & INFORMATION DISPLAY
   ===================================== */

.data-table {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.data-table-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #1f2937;
}

.data-table-row {
    padding: 1rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.data-table-row:hover {
    background: #f8fafc;
}

.data-field {
    font-weight: 600;
    color: #4f46e5;
    min-width: 120px;
}

.data-value {
    color: #6b7280;
}

/* =====================================
   HIGHLIGHT BOXES & CALL-OUTS
   ===================================== */

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
    position: relative;
}

.highlight-box::before {
    content: '💡';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
}

.highlight-box strong {
    color: #92400e;
    font-weight: 600;
}

.warning-box {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
}

.warning-box::before {
    content: '⚠️';
    position: absolute;
    top: -8px;
    left: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.success-box {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #22c55e;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
    position: relative;
}

.success-box::before {
    content: '✅';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
}

.success-box strong {
    color: #166534;
    font-weight: 600;
}

.filter-showcase {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border: 1px solid #0288d1;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(2, 136, 209, 0.1);
    position: relative;
}

.filter-showcase::before {
    content: '🔍';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
}

.filter-showcase strong {
    color: #01579b;
    font-weight: 600;
}

/* =====================================
   FAQ SECTIONS
   ===================================== */

.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 1rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-question {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-question::before {
    content: '❓';
    font-size: 1.2rem;
}

.faq-answer {
    padding: 2rem;
    color: #4b5563;
    line-height: 1.6;
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* Small laptops (11-13 inches) - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .wiki-header {
        padding: 1.75rem;
    }
    .wiki-header h2 {
        font-size: 1.8rem;
    }
    .wiki-header p {
        font-size: 0.95rem;
    }

    .wiki-section {
        margin: 2rem 0;
    }
    .wiki-section-header {
        padding: 1.5rem 1.75rem;
    }
    .wiki-section-header h3 {
        font-size: 1.35rem;
    }
    .wiki-section-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        right: 1.75rem;
    }
    .wiki-section-content {
        padding: 0.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        margin: 2rem 0;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .feature-card h4 {
        font-size: 1rem;
    }
    .feature-card p {
        font-size: 0.9rem;
    }

    .wiki-subsection {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    .wiki-subsection h4 {
        font-size: 1.15rem;
    }

    .step-list li {
        padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    }
    .step-list li::before {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.95rem;
    }

    .video-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    .video-placeholder {
        padding: 2.5rem;
    }
    .video-icon {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.6rem;
    }
}

/* Medium laptops (13-14 inches) - 1025px to 1366px */
@media (min-width: 1025px) and (max-width: 1366px) {
    .wiki-header {
        padding: 2rem;
    }
    .wiki-header h2 {
        font-size: 2rem;
    }
    .wiki-header p {
        font-size: 1rem;
    }

    .wiki-section {
        margin: 2.5rem 0;
    }
    .wiki-section-header {
        padding: 1.75rem 2rem;
    }
    .wiki-section-header h3 {
        font-size: 1.45rem;
    }
    .wiki-section-number {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.05rem;
        right: 2rem;
    }
    .wiki-section-content {
        padding: 0.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.75rem;
        margin: 2.25rem 0;
    }
    .feature-card {
        padding: 1.75rem;
    }
    .feature-icon {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.5rem;
        margin-bottom: 1.15rem;
    }

    .wiki-subsection {
        padding: 1.75rem;
        margin: 1.75rem 0;
    }
    .wiki-subsection h4 {
        font-size: 1.2rem;
    }

    .step-list li {
        padding: 1.75rem 1.75rem 1.75rem 4.75rem;
    }
    .step-list li::before {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.975rem;
    }

    .video-section {
        padding: 1.75rem;
        margin: 1.75rem 0;
    }
    .video-placeholder {
        padding: 2.75rem;
    }
}

/* Larger laptops (15-16 inches) - 1367px to 1600px */
@media (min-width: 1367px) and (max-width: 1600px) {
    .wiki-header {
        padding: 2.25rem;
    }
    .wiki-header h2 {
        font-size: 2.1rem;
    }

    .wiki-section-header {
        padding: 1.85rem 2.25rem;
    }
    .wiki-section-header h3 {
        font-size: 1.5rem;
    }
    .wiki-section-content {
        padding: 0.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.85rem;
    }
    .feature-card {
        padding: 1.85rem;
    }

    .wiki-subsection {
        padding: 1.85rem;
    }
}

/* Tablets and below - up to 1024px */
@media (max-width: 1024px) {
}

/* Large mobile / Small tablets - 481px to 767px */
@media (min-width: 481px) and (max-width: 767px) {
    .wiki-header {
        padding: 1.75rem;
    }
    .wiki-header h2 {
        font-size: 1.6rem;
    }
    .wiki-header p {
        font-size: 0.95rem;
    }

    .wiki-section-header {
        padding: 1.5rem;
    }
    .wiki-section-header h3 {
        font-size: 1.3rem;
    }
    .wiki-section-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.95rem;
        right: 1.5rem;
    }
    .wiki-section-content {
        padding: 0.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.4rem;
    }

    .wiki-subsection {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    .wiki-subsection h4 {
        font-size: 1.15rem;
    }

    .video-section {
        padding: 1.5rem;
    }
    .video-placeholder {
        padding: 2.25rem;
    }
}

/* Small mobile devices - 320px to 480px */
@media (max-width: 480px) {
    .wiki-header {
        padding: 1.25rem;
        border-radius: 12px;
    }
    .wiki-header h2 {
        font-size: 1.35rem;
    }
    .wiki-header p {
        font-size: 0.85rem;
    }

    .wiki-section {
        margin: 1.5rem 0;
        border-radius: 12px;
    }
    .wiki-section-header {
        padding: 1rem 1.25rem;
    }
    .wiki-section-header h3 {
        font-size: 1.1rem;
    }
    .wiki-section-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
        right: 1.25rem;
    }
    .wiki-section-content {
        padding: 0.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-card {
        padding: 1rem;
    }
    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
    .feature-card h4 {
        font-size: 1rem;
    }
    .feature-card p {
        font-size: 0.85rem;
    }

    .step-list li {
        padding: 1rem 1rem 1rem 3.25rem;
        font-size: 0.9rem;
    }
    .step-list li::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
        left: 1rem;
    }

    .video-section {
        padding: 1rem;
    }
    .video-placeholder {
        padding: 1.5rem;
    }
    .video-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.3rem;
    }

    .wiki-subsection {
        padding: 1rem;
        margin: 1rem 0;
    }
    .wiki-subsection h4 {
        font-size: 1rem;
    }

    .highlight-box, .warning-box {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .faq-item {
        padding: 1rem;
    }
    .faq-question {
        font-size: 1rem;
    }
    .faq-answer {
        font-size: 0.85rem;
    }
}

/* Mobile devices - up to 768px (legacy fallback) */
@media (max-width: 768px) {
    .wiki-header {
        padding: 1.5rem;
    }
    .wiki-header h2 {
        font-size: 1.5rem;
    }
    .wiki-header p {
        font-size: 0.9rem;
    }

    .wiki-section-header {
        padding: 1.25rem 1.5rem;
    }
    .wiki-section-header h3 {
        font-size: 1.2rem;
    }
    .wiki-section-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.9rem;
        right: 1.5rem;
    }
    .wiki-section-content {
        padding: 0.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .feature-card {
        padding: 1.25rem;
    }
    .feature-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.3rem;
    }

    .step-list li {
        padding: 1.25rem 1.25rem 1.25rem 3.75rem;
    }
    .step-list li::before {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
        left: 1.25rem;
    }

    .video-section {
        padding: 1.25rem;
    }
    .video-placeholder {
        padding: 2rem;
    }
    .video-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }

    .wiki-subsection {
        padding: 1.25rem;
        margin: 1.25rem 0;
    }
    .wiki-subsection h4 {
        font-size: 1.1rem;
    }

}

/* =====================================
   INLINE CSS CONSOLIDATED FROM HTML FILES
   (Previously duplicated in each HTML file)
   ===================================== */

/* Note: .wiki-header, .wiki-section, .wiki-section-header, and .wiki-section-number
   are already defined above with proper collapsible functionality.
   Keeping only utility classes here to avoid conflicts. */

.text-block, .image-block {
    margin: 1rem 0;
}
