/* ============================================
   GUIDES & TUTORIALS MODAL STYLES
   ============================================ */

/* Modal Container Override */
#guidesModal .modal-content {
    max-width: 1100px;
    max-height: 96vh;
    margin: 2vh auto;
    overflow-y: auto;
    padding: 0;
    background: #fff;
}

/* Mobile: Make modal nearly full screen */
@media (max-width: 600px) {
    #guidesModal .modal-content {
        max-height: 98vh;
        margin: 1vh auto;
        width: 98%;
        border-radius: 16px;
    }
}

/* Modal Header (scrolls away) */
.guides-modal-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 32px 16px;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

/* Sticky Tab Navigation Wrapper */
.guides-tabs-wrapper {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 32px 16px;
    z-index: 10;
}

.guides-modal-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guides-modal-header p {
    opacity: 0.9;
    font-size: 15px;
    margin: 0;
}

.guides-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.guides-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Tab Navigation */
.guides-tabs {
    display: flex;
    gap: 8px;
}

.guides-tab-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.guides-tab-btn:hover {
    background: rgba(255,255,255,0.25);
    color: white;
}

.guides-tab-btn.active {
    background: white;
    color: #667eea;
}

/* Tab Content */
.guides-tab-content {
    display: none;
    padding: 32px;
    animation: fadeIn 0.3s ease;
}

.guides-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   METHOD SELECTOR CARDS
   ============================================ */

.method-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.method-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 2px solid #e8ecff;
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.15);
    border-color: #d0d8ff;
}

.method-card:hover::before {
    transform: scaleX(1);
}

.method-card.active {
    border-color: var(--green);
    background: linear-gradient(135deg, #e8ffe8 0%, #f0fff4 100%);
}

.method-card.active::before {
    transform: scaleX(1);
    background: var(--green);
}

.method-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.method-card-icon.template {
    background: linear-gradient(135deg, #FFE5F0 0%, #F7E8FF 100%);
}

.method-card-icon.manual {
    background: linear-gradient(135deg, #E6F9E6 0%, #E8FFF0 100%);
}

.method-card-icon.printed {
    background: linear-gradient(135deg, #FFF3E6 0%, #FFF8E6 100%);
}

.method-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.method-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.method-card-tag {
    display: inline-block;
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    margin-top: 12px;
    text-transform: uppercase;
}

.method-card-tag.advanced {
    background: var(--orange);
}

/* ============================================
   GUIDE CONTENT AREA
   ============================================ */

.guide-content-area {
    display: none;
    background: #fafbff;
    border-radius: 20px;
    padding: 32px;
    animation: slideDown 0.4s ease;
}

.guide-content-area.active {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 5000px; }
}

.guide-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.guide-back-btn:hover {
    color: #5a67d8;
    transform: translateX(-4px);
}

.guide-title {
    font-size: 26px;
    margin-bottom: 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
}

/* Guide Sections */
.guide-section {
    margin-bottom: 40px;
}

.guide-section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Materials List */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.material-item-icon {
    font-size: 24px;
}

.material-item-text {
    font-size: 14px;
    color: #444;
}

.material-item-text strong {
    display: block;
    color: #333;
}

.material-item-text span {
    font-size: 12px;
    color: #888;
}

/* Step-by-Step */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-step {
    display: flex;
    gap: 20px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.guide-step:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: #ddd;
}

.guide-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.guide-step-content {
    flex: 1;
}

.guide-step-content h4 {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
}

.guide-step-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.guide-step-content ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.guide-step-content li {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 4px;
}

.guide-step-image {
    width: 280px;
    min-width: 280px;
}

/* Image Placeholder */
.guide-image-placeholder {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef1ff 100%);
    border: 2px dashed #d0d8ff;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    transition: all 0.3s;
}

.guide-image-placeholder:hover {
    border-color: #b8c4ff;
    background: linear-gradient(135deg, #eef1ff 0%, #e8ecff 100%);
}

.placeholder-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Actual Image Styling */
.guide-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Pro Tip Box */
.pro-tip-box {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    border: 1px solid #FFE8B3;
    border-left: 4px solid var(--orange);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 16px;
}

.pro-tip-box strong {
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pro-tip-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0F0 100%);
    border: 1px solid #FFD0D0;
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 16px;
}

.warning-box strong {
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.warning-box p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   NAIL SPACING CALCULATOR
   ============================================ */

.spacing-calculator {
    background: white;
    border: 2px solid #e8ecff;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.spacing-calculator h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: end;
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-input-group label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.calc-input-group input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(28, 176, 246, 0.15);
}

.calc-result {
    background: linear-gradient(135deg, var(--green) 0%, #4CAF00 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
}

.calc-result-label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.calc-result-value {
    font-size: 22px;
    font-weight: 700;
}

/* ============================================
   3D VISUALIZER SECTION
   ============================================ */

.visualizer-container {
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0;
}

.mobile-notice {
    background: rgba(255, 149, 0, 0.15);
    border-bottom: 1px solid rgba(255, 149, 0, 0.3);
    padding: 12px 16px;
    color: #ffb347;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.visualizer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.visualizer-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visualizer-controls {
    display: flex;
    gap: 8px;
}

.viz-control-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.viz-control-btn:hover {
    background: rgba(255,255,255,0.2);
}

.viz-control-btn.active {
    background: var(--green);
}

.visualizer-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 450px;
}

.visualizer-params {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    max-height: 450px;
}

.param-section {
    margin-bottom: 24px;
}

.param-section-title {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.param-group {
    margin-bottom: 16px;
}

.param-label {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-bottom: 8px;
}

.param-value {
    color: var(--green);
    font-weight: 600;
}

.param-info {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    margin-top: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.param-summary {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    line-height: 1.6;
}

.param-summary strong {
    color: var(--green);
}

.param-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    outline: none;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--green);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(88, 204, 2, 0.4);
}

.param-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--green);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.param-select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.param-select option {
    background: #1a1a2e;
    color: white;
}

.visualizer-canvas {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #2a2a4e 0%, #1a1a2e 100%);
}

.visualizer-canvas canvas {
    max-width: 100%;
    max-height: 100%;
}

.visualizer-loading {
    position: absolute;
    color: white;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.visualizer-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Export Section */
.export-section {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.export-header {
    margin-bottom: 16px;
}

.export-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.export-options {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.export-part-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.export-part-selector label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.export-part-selector select {
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.export-part-selector select option {
    background: #2a2a3e;
    color: white;
}

.export-info {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px 16px;
}

.export-info p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    margin: 4px 0;
    line-height: 1.5;
}

.export-info strong {
    color: rgba(255,255,255,0.9);
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.export-btn.primary {
    background: var(--green);
    color: white;
}

.export-btn.primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.export-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.export-btn.secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* ============================================
   TIPS & TRICKS TAB - REDESIGNED
   ============================================ */

.tips-redesigned {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Section */
.tips-hero {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.tips-hero-title {
    font-size: 28px;
    margin: 0 0 8px 0;
}

.tips-hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

/* Category Navigation */
.tips-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 8px;
    background: #f5f7ff;
    border-radius: 16px;
    flex-wrap: wrap;
}

.tips-nav-btn {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tips-nav-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tips-nav-btn.active {
    background: white;
    border-color: var(--green);
    box-shadow: 0 4px 16px rgba(88, 204, 2, 0.15);
}

.tips-nav-icon {
    font-size: 28px;
}

.tips-nav-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.tips-nav-btn.active .tips-nav-label {
    color: var(--green);
}

/* Panels */
.tips-panels {
    position: relative;
}

.tips-panel {
    display: none;
    animation: tipsFadeIn 0.3s ease;
}

.tips-panel.active {
    display: block;
}

@keyframes tipsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tips-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eef1ff;
}

.tips-panel-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.tips-panel-icon.images {
    background: linear-gradient(135deg, #FFE5F0 0%, #F7E8FF 100%);
}

.tips-panel-icon.materials {
    background: linear-gradient(135deg, #E6F9E6 0%, #E8FFF0 100%);
}

.tips-panel-icon.techniques {
    background: linear-gradient(135deg, #E6F4FF 0%, #E8F8FF 100%);
}

.tips-panel-icon.finishing {
    background: linear-gradient(135deg, #FFF3E6 0%, #FFF8E6 100%);
}

.tips-panel-info h3 {
    font-size: 22px;
    color: #333;
    margin: 0 0 4px 0;
}

.tips-panel-info p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Tip Cards */
.tips-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-card {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: white;
    border: 1px solid #eee;
    border-radius: 14px;
    transition: all 0.25s ease;
    animation: tipCardSlide 0.4s ease backwards;
}

@keyframes tipCardSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.tip-card:hover {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateX(4px);
}

.tip-card-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, var(--green) 0%, #4CAF00 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.tip-card-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.tip-card-content strong {
    color: #222;
}

/* Highlight Box */
.tips-highlight-box {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFBF0 100%);
    border: 1px solid #FFE8B3;
    border-left: 4px solid var(--orange);
    border-radius: 14px;
}

.tips-highlight-icon {
    font-size: 28px;
}

.tips-highlight-content strong {
    display: block;
    color: var(--orange);
    font-size: 15px;
    margin-bottom: 6px;
}

.tips-highlight-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Quick Reference Card */
.tips-quick-ref {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    color: white;
}

.tips-quick-ref h4 {
    font-size: 16px;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-ref-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}

.quick-ref-label {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-ref-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--green);
}

/* Legacy tips-list (still used in 3D printed guide) */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tips-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    min-width: 20px;
}

/* Legacy tip-highlight (still used elsewhere) */
.tip-highlight {
    background: linear-gradient(135deg, #FFFDE6 0%, #FFFBF0 100%);
    border: 1px solid #FFE8B3;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
}

.tip-highlight strong {
    color: var(--orange);
    font-size: 13px;
}

.tip-highlight p {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #666;
}

/* ============================================
   FAQ TAB
   ============================================ */

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

.faq-section {
    margin-bottom: 32px;
}

.faq-section-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #ddd;
}

.faq-item.open {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(28, 176, 246, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
}

.faq-question:hover {
    background: #fafbff;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.faq-item.open .faq-toggle {
    background: var(--blue);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 22px 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer li {
    margin-bottom: 6px;
}

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

@media (max-width: 900px) {
    .method-selector {
        grid-template-columns: 1fr;
    }

    .visualizer-main {
        grid-template-columns: 1fr;
    }

    .visualizer-params {
        display: none; /* Hide desktop params on tablet/mobile */
    }

    .visualizer-params-mobile {
        display: block;
        background: rgba(255,255,255,0.03);
        padding: 16px;
        max-height: 300px;
        overflow-y: auto;
    }

    .visualizer-canvas {
        min-height: 300px;
    }

    .calculator-inputs {
        grid-template-columns: 1fr;
    }

    .materials-grid {
        grid-template-columns: 1fr;
    }

    .guide-step {
        flex-direction: column;
    }

    .guide-step-image {
        width: 100%;
        min-width: auto;
    }

    /* Tips Redesigned - Tablet */
    .tips-nav {
        gap: 8px;
        padding: 6px;
    }

    .tips-nav-btn {
        min-width: 100px;
        padding: 12px 8px;
    }

    .tips-nav-icon {
        font-size: 24px;
    }

    .tips-nav-label {
        font-size: 11px;
    }

    .tips-panel-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .quick-ref-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide mobile params by default (desktop) */
.visualizer-params-mobile {
    display: none;
}

@media (max-width: 600px) {
    .guides-modal-header {
        padding: 12px 12px 8px;
    }

    .guides-modal-header h2 {
        font-size: 18px;
        gap: 8px;
    }

    .guides-modal-header p {
        font-size: 12px;
    }

    .guides-modal-close {
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .guides-tabs-wrapper {
        padding: 8px 12px 12px;
    }

    .guides-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        width: 100%;
    }

    .guides-tab-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 6px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
        border-radius: 14px;
    }

    .guides-tab-content {
        padding: 12px;
    }

    .method-card {
        padding: 12px;
    }

    .guide-content-area {
        padding: 20px;
    }

    .export-buttons {
        flex-direction: column;
    }

    .export-options {
        flex-direction: column;
        align-items: stretch;
    }

    .export-part-selector {
        justify-content: space-between;
    }

    /* Visualizer Mobile */
    .visualizer-toolbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .visualizer-title {
        font-size: 14px;
    }

    .visualizer-controls {
        width: 100%;
        justify-content: center;
    }

    .viz-control-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }

    .visualizer-canvas {
        min-height: 250px;
    }

    .visualizer-params-mobile {
        padding: 12px;
    }

    .visualizer-params-mobile .param-section {
        margin-bottom: 16px;
    }

    .visualizer-params-mobile .param-group {
        margin-bottom: 12px;
    }

    .visualizer-params-mobile .param-section-title {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .visualizer-params-mobile .param-label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .export-section {
        padding: 16px;
    }

    .export-title {
        font-size: 14px;
    }

    .export-info p {
        font-size: 11px;
    }

    /* Tips Redesigned - Mobile */
    .tips-hero {
        padding: 18px;
    }

    .tips-hero-title {
        font-size: 22px;
    }

    .tips-hero-subtitle {
        font-size: 13px;
    }

    .tips-nav {
        flex-direction: column;
        gap: 6px;
    }

    .tips-nav-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 12px;
    }

    .tips-nav-icon {
        font-size: 22px;
    }

    .tips-nav-label {
        font-size: 14px;
    }

    .tip-card {
        padding: 14px 16px;
    }

    .tip-card-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 12px;
    }

    .tip-card-content {
        font-size: 13px;
    }

    .tips-highlight-box {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .tips-quick-ref {
        padding: 18px;
    }

    .quick-ref-item {
        padding: 12px;
    }

    .quick-ref-value {
        font-size: 14px;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

.dark-mode #guidesModal .modal-content {
    background: #1a1a2e;
}

.dark-mode .method-card {
    background: linear-gradient(135deg, #252540 0%, #1e1e36 100%);
    border-color: #3a3a5a;
}

.dark-mode .method-card h3 {
    color: #fff;
}

.dark-mode .method-card p {
    color: #aaa;
}

.dark-mode .guide-content-area {
    background: #252540;
}

.dark-mode .guide-title,
.dark-mode .guide-section-title {
    color: #fff;
}

.dark-mode .guide-subtitle,
.dark-mode .guide-step-content p,
.dark-mode .guide-step-content li {
    color: #aaa;
}

.dark-mode .guide-step {
    background: #1e1e36;
    border-color: #3a3a5a;
}

.dark-mode .guide-step-content h4 {
    color: #fff;
}

.dark-mode .material-item {
    background: #1e1e36;
    border-color: #3a3a5a;
}

.dark-mode .material-item-text {
    color: #ccc;
}

.dark-mode .material-item-text strong {
    color: #fff;
}

.dark-mode .spacing-calculator {
    background: #1e1e36;
    border-color: #3a3a5a;
}

.dark-mode .spacing-calculator h4 {
    color: #fff;
}

.dark-mode .calc-input-group label {
    color: #aaa;
}

.dark-mode .calc-input-group input {
    background: #252540;
    border-color: #3a3a5a;
    color: #fff;
}

.dark-mode .tips-category {
    background: #1e1e36;
    border-color: #3a3a5a;
}

.dark-mode .tips-category-title {
    color: #fff;
}

.dark-mode .tips-list li {
    color: #bbb;
    border-color: #3a3a5a;
}

.dark-mode .faq-item {
    background: #1e1e36;
    border-color: #3a3a5a;
}

.dark-mode .faq-question {
    color: #fff;
}

.dark-mode .faq-question:hover {
    background: #252540;
}

.dark-mode .faq-answer {
    color: #aaa;
}

.dark-mode .faq-toggle {
    background: #3a3a5a;
}

.dark-mode .guide-image-placeholder {
    background: linear-gradient(135deg, #252540 0%, #1e1e36 100%);
    border-color: #3a3a5a;
}

/* Pro Tip Box - Dark Mode */
.dark-mode .pro-tip-box {
    background: linear-gradient(135deg, #2d2a1a 0%, #252218 100%);
    border-color: #4a4530;
    border-left-color: var(--orange);
}

.dark-mode .pro-tip-box strong {
    color: #FFB347;
}

.dark-mode .pro-tip-box p {
    color: #d0d0d0;
}

/* Warning Box - Dark Mode */
.dark-mode .warning-box {
    background: linear-gradient(135deg, #2d1a1a 0%, #251818 100%);
    border-color: #4a3030;
    border-left-color: var(--red);
}

.dark-mode .warning-box strong {
    color: #FF6B6B;
}

.dark-mode .warning-box p {
    color: #d0d0d0;
}

/* Tip Highlight - Dark Mode */
.dark-mode .tip-highlight {
    background: linear-gradient(135deg, #2d2a1a 0%, #252218 100%);
    border-color: #4a4530;
}

.dark-mode .tip-highlight strong {
    color: #FFB347;
}

.dark-mode .tip-highlight p {
    color: #d0d0d0;
}

/* Tips Redesigned - Dark Mode */
.dark-mode .tips-hero {
    background: linear-gradient(135deg, #3a3a5a 0%, #2d2d4a 100%);
}

.dark-mode .tips-nav {
    background: #252540;
}

.dark-mode .tips-nav-btn {
    color: #aaa;
}

.dark-mode .tips-nav-btn:hover {
    background: #1e1e36;
}

.dark-mode .tips-nav-btn.active {
    background: #1e1e36;
    border-color: var(--green);
}

.dark-mode .tips-nav-btn.active .tips-nav-label {
    color: var(--green);
}

.dark-mode .tips-nav-label {
    color: #aaa;
}

.dark-mode .tips-panel-header {
    border-color: #3a3a5a;
}

.dark-mode .tips-panel-info h3 {
    color: #fff;
}

.dark-mode .tips-panel-info p {
    color: #888;
}

.dark-mode .tip-card {
    background: #1e1e36;
    border-color: #3a3a5a;
}

.dark-mode .tip-card:hover {
    border-color: #4a4a6a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.dark-mode .tip-card-content {
    color: #bbb;
}

.dark-mode .tip-card-content strong {
    color: #fff;
}

.dark-mode .tips-highlight-box {
    background: linear-gradient(135deg, #2d2a1a 0%, #252218 100%);
    border-color: #4a4530;
}

.dark-mode .tips-highlight-content strong {
    color: #FFB347;
}

.dark-mode .tips-highlight-content p {
    color: #d0d0d0;
}

.dark-mode .tips-quick-ref {
    background: linear-gradient(135deg, #252540 0%, #1e1e36 100%);
}

.dark-mode .tips-quick-ref h4 {
    color: rgba(255,255,255,0.9);
}

.dark-mode .quick-ref-item {
    background: rgba(255,255,255,0.05);
}
