/* Buy Page Specific Styles */

/* Hero Section */
.buy-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #4F46E5 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.buy-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.buy-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-highlights {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.highlight-item i {
    font-size: 1.5rem;
    color: #10B981;
}

/* Quick Navigation */
.quick-nav {
    background: white;
    padding: 2rem 0;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-items {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border-radius: 25px;
    color: #666;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.nav-item:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: #4F46E5;
    color: #4F46E5;
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.2rem;
}

/* Section Styling */
.before-buy,
.where-to-buy,
.how-to-buy,
.add-to-wallet,
.troubleshooting {
    padding: 5rem 0;
}

.before-buy {
    background: #f8f9fa;
}

.where-to-buy {
    background: white;
}

.how-to-buy {
    background: #f8f9fa;
}

.add-to-wallet {
    background: white;
}

.troubleshooting {
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.requirement-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s;
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.req-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.req-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.req-icon i {
    font-size: 2rem;
    color: white;
}

.requirement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.requirement-card > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.wallet-option:hover {
    background: #e9ecef;
}

.wallet-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.wallet-info {
    flex: 1;
}

.wallet-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.wallet-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.wallet-link {
    color: #4F46E5;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wallet-link:hover {
    text-decoration: underline;
}

/* Gas Info */
.gas-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.gas-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4F46E5;
}

/* Tip & Warning Boxes */
.tip-box,
.warning-box,
.success-box {
    padding: 1.25rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tip-box {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
}

.tip-box i {
    color: #0ea5e9;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.warning-box i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid #10B981;
}

.success-box i {
    color: #10B981;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Security List */
.security-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.security-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.security-list i {
    color: #10B981;
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.security-list strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.security-list p {
    color: #666;
    font-size: 0.95rem;
}

/* Exchanges Grid */
.exchanges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.exchange-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.exchange-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #4F46E5;
}

.exchange-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.exchange-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.exchange-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.exchange-type {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.exchange-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exchange-status {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.exchange-status.available {
    background: #d1fae5;
    color: #059669;
}

.exchange-status.coming-soon {
    background: #fee2e2;
    color: #dc2626;
}

.btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #e5e7eb;
    transform: none;
}

.exchange-note {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: #e0f2fe;
    border-radius: 12px;
    border-left: 4px solid #0ea5e9;
}

.exchange-note i {
    color: #0ea5e9;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Method Tabs */
.method-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.method-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.method-tab:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.method-tab.active {
    background: #4F46E5;
    border-color: #4F46E5;
    color: white;
}

.method-tab i {
    font-size: 1.25rem;
}

.method-content {
    display: none;
}

.method-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Steps Container */
.steps-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.step-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-header h3 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin: 0;
}

.step-body p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.step-image {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.step-list li {
    padding-left: 2rem;
    position: relative;
    color: #666;
    line-height: 1.7;
}

.step-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4F46E5;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Contract Box */
.contract-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid #e5e7eb;
}

.contract-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #4F46E5;
    word-break: break-all;
}

.btn-copy-small {
    background: #4F46E5;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-copy-small:hover {
    background: #3730a3;
}

/* Token Cards */
.token-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.token-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.token-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #4F46E5;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.token-icon {
    width: 120px;
    height: 120px;
    #background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-icon.governance {
    #background: var(--gradient-2);
}

.token-icon i {
    font-size: 2rem;
    color: white;
}

.token-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.token-type {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    color: #4F46E5;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a1a1a;
}

.detail-value code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;  /* Smaller to fit better */
    color: #4F46E5;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;  /* No wrapping */
    flex: 1;
    min-width: 0;  /* Allows shrinking if needed */
}

.btn-copy-icon {
    background: transparent;
    border: none;
    color: #4F46E5;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.btn-copy-icon:hover {
    background: rgba(79, 70, 229, 0.1);
}

.btn-add-metamask {
    width: 100%;
    justify-content: center;
}

/* Manual Instructions */
.manual-instructions {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.manual-instructions h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-step {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    line-height: 1.7;
}

.instruction-step strong {
    color: #4F46E5;
    margin-right: 0.5rem;
}

/* Help CTA */
.help-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #4F46E5 100%);
    color: white;
    text-align: center;
}

.help-cta .cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.help-cta .cta-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.help-cta .cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .buy-hero h1 {
        font-size: 2.5rem;
    }

    .hero-highlights {
        flex-direction: column;
        gap: 1.5rem;
    }

    .requirements-grid,
    .exchanges-grid,
    .token-cards {
        grid-template-columns: 1fr;
    }

    .method-tabs {
        flex-direction: column;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contract-box {
        flex-direction: column;
    }

    .help-cta .cta-buttons {
        flex-direction: column;
    }
}

.image-zoom {
    transition: transform 0.3s ease; /* Smooth transition */
}

.image-zoom:hover {
    transform: scale(2.0); /* Scale the image to 250% */
}