/**
 * Dropshipping Guide Styles
 */

:root {
    --dsg-primary: #2563eb;
    --dsg-primary-hover: #1d4ed8;
    --dsg-secondary: #10b981;
    --dsg-secondary-hover: #059669;
    --dsg-dark: #1f2937;
    --dsg-gray: #6b7280;
    --dsg-light-gray: #f3f4f6;
    --dsg-border: #e5e7eb;
    --dsg-white: #ffffff;
    --dsg-warning: #f59e0b;
    --dsg-info: #3b82f6;
    --dsg-success: #10b981;
    --dsg-radius: 8px;
    --dsg-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dsg-guide {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: var(--dsg-dark);
}

/* Buttons */
.dsg-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--dsg-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.2s ease;
}

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

.dsg-btn-primary:hover {
    background: var(--dsg-primary-hover);
    color: var(--dsg-white);
}

.dsg-btn-secondary {
    background: var(--dsg-secondary);
    color: var(--dsg-white);
}

.dsg-btn-secondary:hover {
    background: var(--dsg-secondary-hover);
}

/* Hide page title when guide is displayed */
.page:has(.dsg-access-gate-wrapper) .ghost-header,
.page:has(.dsg-guide) .ghost-header,
.ghost-article:has(.dsg-access-gate-wrapper) .ghost-header,
.ghost-article:has(.dsg-guide) .ghost-header {
    display: none !important;
}

/* Fallback for browsers that don't support :has() */
.dsg-access-gate-wrapper ~ .ghost-header,
.dsg-guide ~ .ghost-header {
    display: none !important;
}

/* Access Gate Wrapper - Full Width */
.dsg-access-gate-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8b5cf6 100%);
    min-height: 80vh;
    padding: 4rem 2rem;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin-top: -2rem;
}

.dsg-access-gate-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50% 0 0 0;
    pointer-events: none;
}

/* Access Gate */
.dsg-access-gate {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dsg-access-gate-content {
    text-align: center;
    color: var(--dsg-white);
}

.dsg-access-header {
    margin-bottom: 4rem;
    text-align: center;
}

.dsg-access-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 auto 1.5rem auto;
    color: white;
    letter-spacing: -0.02em;
    text-align: center;
}

.dsg-access-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 auto;
    color: white;
    font-weight: 400;
    max-width: 700px;
    text-align: center;
}

.dsg-access-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.dsg-access-option {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dsg-access-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dsg-option-icon {
    display: none;
}

.dsg-access-option h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--dsg-white);
    font-weight: 600;
}

.dsg-access-option p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.dsg-access-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

.dsg-divider-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
}

.dsg-divider-text {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.8;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.dsg-guest-form {
    width: 100%;
}

.dsg-form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dsg-guest-form input[type="email"] {
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    transition: all 0.2s;
}

.dsg-guest-form input[type="email"]:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.dsg-guest-form input[type="email"]::placeholder {
    color: #9ca3af;
}

.dsg-btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
}

.dsg-small-text {
    font-size: 0.875rem !important;
    opacity: 0.8;
    margin-top: 1rem !important;
    line-height: 1.5;
}

/* Notification Modal */
.dsg-notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.dsg-notification-modal.active {
    display: flex;
}

.dsg-notification-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.dsg-notification-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dsgModalSlideIn 0.3s ease-out;
}

@keyframes dsgModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dsg-notification-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.dsg-notification-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.dsg-notification-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.dsg-notification-icon.success {
    color: #22c55e;
}

.dsg-notification-icon.error {
    color: #ef4444;
}

.dsg-notification-icon.info {
    color: #3b82f6;
}

.dsg-notification-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.dsg-notification-message {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.dsg-notification-btn {
    width: 100%;
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* Guest Notice */
.dsg-guest-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--dsg-radius);
    padding: 12px 20px;
    margin-bottom: 24px;
}

.dsg-guest-notice p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
}

.dsg-guest-notice a {
    color: #92400e;
    font-weight: 600;
}

/* Progress Overview */
.dsg-progress-overview {
    background: var(--dsg-white);
    border: 1px solid var(--dsg-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--dsg-shadow);
}

.dsg-progress-overview h3 {
    margin: 0 0 20px;
    font-size: 18px;
}

.dsg-progress-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dsg-stat {
    display: flex;
    flex-direction: column;
}

.dsg-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--dsg-primary);
}

.dsg-stat-label {
    font-size: 13px;
    color: var(--dsg-gray);
}

.dsg-progress-bar-container {
    background: var(--dsg-light-gray);
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.dsg-progress-bar {
    background: linear-gradient(90deg, var(--dsg-primary), var(--dsg-secondary));
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Modules */
.dsg-modules {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dsg-module {
    background: var(--dsg-white);
    border: 1px solid var(--dsg-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--dsg-shadow);
}

.dsg-module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dsg-module-header:hover {
    background: var(--dsg-light-gray);
}

.dsg-module-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.dsg-module-info {
    flex: 1;
}

.dsg-module-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.dsg-module-info p {
    margin: 0;
    font-size: 14px;
    color: var(--dsg-gray);
}

.dsg-module-progress {
    background: var(--dsg-light-gray);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dsg-gray);
}

.dsg-module-toggle {
    font-size: 14px;
    color: var(--dsg-gray);
    transition: transform 0.3s ease;
}

.dsg-module.expanded .dsg-module-toggle {
    transform: rotate(180deg);
}

.dsg-module-lessons {
    display: none;
    border-top: 1px solid var(--dsg-border);
}

.dsg-module.expanded .dsg-module-lessons {
    display: block;
}

.dsg-lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--dsg-border);
}

.dsg-lesson:last-child {
    border-bottom: none;
}

.dsg-lesson:hover {
    background: var(--dsg-light-gray);
}

.dsg-lesson-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: var(--dsg-gray);
    border: 2px solid var(--dsg-border);
    flex-shrink: 0;
}

.dsg-lesson-completed .dsg-lesson-status {
    background: var(--dsg-success);
    border-color: var(--dsg-success);
    color: var(--dsg-white);
}

.dsg-lesson-title {
    flex: 1;
    font-size: 15px;
}

.dsg-lesson-items {
    font-size: 12px;
    color: var(--dsg-gray);
    background: var(--dsg-light-gray);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Lesson Panel */
.dsg-lesson-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 700px;
    height: 100vh;
    background: var(--dsg-white);
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.dsg-lesson-panel.active {
    right: 0;
}

.dsg-lesson-panel-content {
    padding: 30px;
    position: relative;
}

.dsg-lesson-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--dsg-light-gray);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dsg-lesson-close:hover {
    background: var(--dsg-border);
}

/* Lesson Content */
.dsg-lesson-body h2 {
    font-size: 28px;
    margin-bottom: 24px;
    padding-right: 50px;
}

.dsg-lesson-content {
    font-size: 16px;
    line-height: 1.7;
}

.dsg-lesson-content h3 {
    font-size: 22px;
    margin: 30px 0 16px;
}

.dsg-lesson-content h4 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.dsg-lesson-content ul,
.dsg-lesson-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.dsg-lesson-content li {
    margin-bottom: 8px;
}

/* Callouts */
.dsg-callout {
    padding: 16px 20px;
    border-radius: var(--dsg-radius);
    margin: 20px 0;
    border-left: 4px solid;
}

.dsg-callout-info {
    background: #eff6ff;
    border-color: var(--dsg-info);
}

.dsg-callout-warning {
    background: #fffbeb;
    border-color: var(--dsg-warning);
}

/* Tables */
.dsg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.dsg-table th,
.dsg-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--dsg-border);
}

.dsg-table th {
    background: var(--dsg-light-gray);
    font-weight: 600;
}

/* Checklist */
.dsg-checklist {
    background: var(--dsg-light-gray);
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
}

.dsg-checklist h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

.dsg-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--dsg-border);
    cursor: pointer;
}

.dsg-checklist-item:last-of-type {
    border-bottom: none;
}

.dsg-checklist-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--dsg-success);
}

.dsg-checklist-item span {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

.dsg-checklist-item:has(input:checked) span {
    text-decoration: line-through;
    opacity: 0.6;
}

.dsg-lesson-complete {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--dsg-border);
}

.dsg-lesson-complete label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.dsg-login-prompt {
    margin-top: 16px;
    font-size: 14px;
    color: var(--dsg-gray);
}

.dsg-login-prompt a {
    color: var(--dsg-primary);
    font-weight: 600;
}

/* Standalone Lesson */
.dsg-standalone-lesson {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.dsg-lesson-breadcrumb {
    font-size: 14px;
    color: var(--dsg-gray);
    margin-bottom: 20px;
}

.dsg-lesson-breadcrumb a {
    color: var(--dsg-primary);
    text-decoration: none;
}

/* Overlay */
.dsg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dsg-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Navigation */
.dsg-lesson-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--dsg-border);
}

.dsg-lesson-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--dsg-light-gray);
    border: none;
    border-radius: var(--dsg-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.dsg-lesson-nav-btn:hover {
    background: var(--dsg-border);
}

/* Responsive */
/* Responsive Design */
@media (max-width: 968px) {
    .dsg-access-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dsg-access-divider {
        flex-direction: row;
        gap: 1rem;
    }
    
    .dsg-divider-line {
        width: 60px;
        height: 1px;
    }
}

@media (max-width: 768px) {
    .dsg-access-gate-wrapper {
        padding: 3rem 1.5rem;
        min-height: 70vh;
        margin-top: -1rem;
    }
    
    .dsg-access-title {
        font-size: 2.5rem;
    }
    
    .dsg-access-subtitle {
        font-size: 1.125rem;
    }
    
    .dsg-access-option {
        padding: 2rem 1.5rem;
    }
    
    .dsg-access-option h3 {
        font-size: 1.25rem;
    }
    
    .dsg-notification-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }
    
    .dsg-access-options {
        flex-direction: column;
    }
    
    .dsg-access-option {
        max-width: none;
    }
    
    .dsg-lesson-panel {
        max-width: 100%;
    }
    
    .dsg-stat-number {
        font-size: 24px;
    }
}
