/* Getting Started Tutorial Styles */
.getting-started-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Main Getting Started Header */

.tab-content#getting-started .getting-started-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.tab-content#getting-started .getting-started-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.tab-content#getting-started .getting-started-subtitle {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.tutorial-section {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin: 0 auto 30px auto;
    transition: all 0.3s ease;
    max-width: 1000px !important;
    width: 1000px !important;
}

.tutorial-section:hover {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.1);
}

.tutorial-header {
    text-align: center;
    margin-bottom: 20px;
}

.tutorial-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tutorial-subtitle {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.video-container {
    max-width: 800px;
    width: 800px;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: #000000;
    padding: 0;
    text-align: center;
}

.tutorial-video {
    width: 100%;
    max-height: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Dropdown Guide Styles */
.guide-dropdown {
    margin-top: 20px;
}

.dropdown-toggle {
    width: 100%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: #000000;
    border-color: #00eaff;
    color: #00eaff;
}

.dropdown-toggle .dropdown-text {
    flex: 1;
    text-align: left;
}

.dropdown-toggle .dropdown-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.dropdown-content.active {
    max-height: 2000px;
}

.guide-content {
    padding: 20px;
    background: #000000;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.guide-step {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.guide-step:hover {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.1);
}

.guide-step h4 {
    color: #00eaff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.guide-step p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.guide-step ul {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 20px;
    margin-bottom: 10px;
}

.guide-step li {
    margin-bottom: 5px;
}

.guide-step a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}

.guide-step a:hover {
    color: #45b7d1;
    text-decoration: underline;
}

.guide-step.warning {
    background: #1a0a0a;
    border-color: rgba(255, 107, 107, 0.3);
}

.guide-step.warning h4 {
    color: #ff6b6b;
}

/* Guide Action Button */
.guide-action {
    margin-top: 25px;
    text-align: center;
}

/* Wallet Tokens Grid in Guide */
.guide-action .wallet-tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guide-action .wallet-token-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-height: 80px;
}

.guide-action .wallet-token-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(230, 25, 230, 0.3);
    transform: translateY(-2px);
}

.guide-action .wallet-token-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-action .wallet-token-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guide-action .wallet-token-info {
    text-align: center;
}

.guide-action .wallet-token-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
}

.official-site-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.official-site-button:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.official-site-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

/* Tutorial Buttons Grid */
.tutorial-buttons-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* PulseX Trade Button (matches landing page style) */
.pulsex-trade-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    background: #00FF40 !important;
    color: #000000 !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    text-decoration: none;
    outline: none !important;
    text-shadow: none !important;
}

.pulsex-trade-btn:hover {
    transform: translateY(-2px);
    background: #00FF40 !important;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    color: #000000 !important;
}

/* DexScreener Button */
.dexscreener-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

.dexscreener-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

/* Portfolio Promotion */
.portfolio-promotion {
    background: rgba(230, 25, 230, 0.1);
    border: 1px solid rgba(230, 25, 230, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
}

.portfolio-promotion p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* PulseChain Bridge Button */
.pulsechain-bridge-button {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e619e6, #00d4ff);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(230, 25, 230, 0.2);
}

.pulsechain-bridge-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 25, 230, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.pulsechain-bridge-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(230, 25, 230, 0.2);
}

/* Close Guide Button - Matches Back to Top Button */
.guide-close-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.close-guide-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 auto !important;
    padding: 15px 30px !important;
    background: linear-gradient(135deg, #e619e6, #00d4ff) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(230, 25, 230, 0.3) !important;
    text-decoration: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

.close-guide-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(230, 25, 230, 0.4) !important;
}

.close-guide-btn:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(230, 25, 230, 0.4) !important;
}

.close-guide-btn:focus {
    outline: none !important;
}

.close-guide-btn i {
    font-size: 1.2rem !important;
}


/* Desktop-specific centering */
@media (min-width: 769px) {
    .video-container {
        text-align: center !important;
        margin: 0 auto 20px auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .tutorial-video {
        margin: 0 auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-section {
        padding: 15px;
        margin-bottom: 25px;
        max-width: 92%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tutorial-header h2 {
        font-size: 1.5rem;
    }
    
    .tutorial-subtitle {
        font-size: 0.9rem;
    }
    
    .video-container {
        max-width: 90% !important;
        width: 90% !important;
        margin: 0 auto !important;
    }
    
    .tutorial-video {
        max-height: 300px;
    }
    
    .dropdown-toggle {
        padding: 12px 15px;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .guide-content {
        padding: 15px;
        max-height: 70vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding-bottom: 80px !important; /* Add extra padding to ensure close button is visible */
    }
    
    .guide-step {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .guide-step h4 {
        font-size: 1.1rem;
    }
    
    /* Mobile dropdown content height fix - allow more content and better scrolling */
    .dropdown-content.active {
        max-height: 90vh !important; /* Increased from 80vh to 90vh */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        /* Ensure content is properly scrollable */
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Improve mobile scrolling for guide content */
    .guide-content {
        padding: 20px !important;
        /* Ensure content has proper spacing for scrolling */
        margin-bottom: 20px !important;
        /* Improve touch scrolling on mobile */
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
        padding-bottom: 100px !important; /* Extra padding to ensure close button is visible */
    }
    
    /* Ensure close guide section is always visible */
    .guide-close-section {
        position: sticky !important;
        bottom: 0 !important;
        background: #000000 !important;
        padding: 15px 0 !important;
        margin-top: 20px !important;
        z-index: 10 !important;
    }
    
    /* Ensure guide steps are properly spaced for mobile scrolling */
    .guide-step {
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }
    
    /* Make sure dropdown content is properly contained */
    .dropdown-content {
        /* Ensure proper containment for mobile */
        contain: layout style !important;
        /* Improve scrolling performance */
        will-change: scroll-position !important;
    }
    
    /* Mobile styles for new tutorial elements */
    .tutorial-buttons-grid {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .pulsex-trade-btn,
    .dexscreener-btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-promotion {
        padding: 15px;
        margin-top: 10px;
    }
    
    .portfolio-promotion p {
        font-size: 0.9rem;
    }
    
    .wallet-tokens-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .wallet-token-btn {
        padding: 12px;
        min-height: 70px;
    }
    
    .wallet-token-logo {
        width: 28px;
        height: 28px;
    }
    
    .wallet-token-name {
        font-size: 0.8rem;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    .tutorial-section {
        max-width: 88%;
        padding: 12px;
    }
    
    .video-container {
        max-width: 85% !important;
        width: 85% !important;
    }
    
    .tutorial-header h2 {
        font-size: 1.3rem;
    }
    
    .tutorial-subtitle {
        font-size: 0.85rem;
    }
    
    .dropdown-toggle {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .guide-content {
        padding: 12px;
        max-height: 75vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
        padding-bottom: 100px !important; /* Extra padding to ensure close button is visible */
    }
    
    .guide-step {
        padding: 10px;
    }
    
    .guide-step h4 {
        font-size: 1rem;
    }
    
    /* Extra small mobile dropdown content height fix - allow more content */
    .dropdown-content.active {
        max-height: 95vh !important; /* Increased from 85vh to 95vh */
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        /* Ensure content is properly scrollable on small screens */
        position: relative !important;
        z-index: 10 !important;
    }
    
    .pulsex-trade-btn,
    .dexscreener-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .portfolio-promotion {
        padding: 12px;
    }
    
    .portfolio-promotion p {
        font-size: 0.85rem;
    }
}
