/* Buy Page Specific Styles */
.buy-page {
   min-height: 100vh;
     display: flex;
    flex-direction: column;
    background-color: transparent;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

/* Override game-container styles for buy page */
.game-container.buy-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    position: relative;
    z-index: 1;
    background-color: transparent;
    max-width: 2000px;
    margin: 0 auto;
}

/* Custom background for buy page */
.buy-page .background-overlay {
    background-image: url('../assets/images/bg2.png') !important;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Text content with no background */
.text-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 60px;
    position: relative;
    z-index: 1;
    background-color: transparent;
    max-width: 800px;
}

/* Apply custom scrollbar to text-content */
.text-content.custom-scrollbar {
    padding-right: 60px;
    padding-left: 40px;
    margin-right: -8px;
    height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #FFB800 rgba(26, 43, 60, 0.3);
    direction: rtl;
}

.text-content.custom-scrollbar > * {
    direction: ltr;
}

.text-content.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

.text-content.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFB800 0%, #FF8C00 100%);
    border-radius: 4px;
    border: 1px solid rgba(26, 43, 60, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.text-content.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFC933 0%, #FFA333 100%);
}

.text-content.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(26, 43, 60, 0.2);
    border-radius: 4px;
    margin: 4px 0;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .text-content.custom-scrollbar {
        height: auto;
        overflow-y: visible;
    }
    
    .text-content.custom-scrollbar::-webkit-scrollbar {
        display: none;
    }
}

/* Logo Styling */
.game-logo {
    margin-bottom: 40px;
    text-align: left;
    padding-top: 20px;
}

.title-image {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 184, 0, 0.2));
}

/* Main Content */
.main-heading {
    font-size: 76px;
    color: #FFB800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 35px;
    letter-spacing: 3px;
    font-family: 'Grenze Gotisch', serif;
}

/* Buy Specific Styles */
.buy-text {
    font-family: 'Arial', sans-serif;
    font-size: 19px;
    line-height: 1.8;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 700px;
}

.buy-text p {
    margin-bottom: 24px;
}

/* Price Box Styling */
.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 43, 60, 0.7);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.price-ticker {
    display: flex;
    flex-direction: column;
}

.ticker-label {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 8px;
}

.ticker-value {
    font-size: 36px;
    font-weight: bold;
    color: #FFB800;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

.price-change {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-change.positive {
    color: #4CAF50;
}

.price-change.negative {
    color: #F44336;
}

.change-value {
    font-size: 28px;
    font-weight: bold;
}

.change-period {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Section Title */
.section-title {
    font-family: 'Grenze Gotisch', serif;
    font-size: 42px;
    color: #FFB800;
    margin: 40px 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Steps Container */
.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.step-item {
    background: rgba(26, 43, 60, 0.7);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background: #FFB800;
    color: #1A2B3C;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Grenze Gotisch', serif;
}

.step-item h3 {
    font-family: 'Grenze Gotisch', serif;
    font-size: 24px;
    color: #FFB800;
    margin-bottom: 10px;
    margin-left: 15px;
    letter-spacing: 1px;
}

.step-item p {
    font-size: 16px;
    margin-bottom: 0;
    margin-left: 15px;
}

/* Contract Box */
.contract-box {
    background: rgba(26, 43, 60, 0.7);
    border: 1px solid rgba(255, 184, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
}

.contract-box h3 {
    color: #FFB800;
    font-size: 24px;
    margin-bottom: 15px;
}

.contract-address {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: #fff;
    word-break: break-all;
}

.contract-note {
    margin-top: 10px;
    color: #FFB800;
    font-style: italic;
    font-size: 14px;
}

.copy-btn {
    background: #FFB800;
    color: #1A2B3C;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #FFD700;
    transform: scale(1.05);
}

/* Exchange Buttons */
.exchange-buttons {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.exchange-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: rgba(26, 43, 60, 0.7);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 5px;
    color: #FFB800;
    text-decoration: none;
    font-family: 'Grenze Gotisch', serif;
    font-size: 24px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.exchange-btn:hover:not(.disabled),
.exchange-btn:focus:not(.disabled) {
    background: rgba(26, 43, 60, 0.5);
    border-color: rgba(255, 184, 0, 0.5);
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.exchange-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(26, 43, 60, 0.4);
}

.exchange-btn.uniswap {
    background: rgba(232, 65, 66, 0.7);
}

.exchange-btn.uniswap:hover {
    background: rgba(232, 65, 66, 0.5);
}

.buy-text .quote {
    font-family: 'Grenze Gotisch', serif;
    font-size: 34px;
    color: #FFB800;
    text-align: left;
    margin: 40px 0;
    font-style: italic;
    letter-spacing: 1px;
}

/* Image Content */
.image-content {
    width: 55%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background-color: transparent;
    height: 100vh;
    padding-right: 40px;
    padding-bottom: 0;
}

.character-image {
    width: auto;
    height: 90vh;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.5));
}

/* Action Links */
.action-links {
    margin-top: auto;
    padding-top: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.action-links .menu-item {
    font-size: 38px;
    padding: 15px 32px;
    background: rgba(26, 43, 60, 0.7);
    border: 1px solid rgba(255, 184, 0, 0.3);
    transition: all 0.3s ease;
    font-family: 'Grenze Gotisch', serif;
    letter-spacing: 1px;
    text-decoration: none;
    color: #FFB800;
}

.action-links .menu-item:hover {
    background: rgba(26, 43, 60, 0.5);
    border-color: rgba(255, 184, 0, 0.5);
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.action-links .menu-divider {
    width: 38px;
    height: auto;
    opacity: 0.8;
}

/* Version Number */
.buy-page .version {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 24px;
    color: #FFB800;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
    z-index: 10;
}

/* Responsive Design */
@media (min-width: 1401px) {
    .character-image {
        height: 95vh;
    }
}

@media (max-width: 1400px) {
    .text-content {
        padding: 40px 50px;
    }
    
    .text-content.custom-scrollbar {
        padding-right: 50px;
        padding-left: 30px;
    }

    .main-heading {
        font-size: 68px;
    }

    .section-title {
        font-size: 38px;
    }

    .ticker-value {
        font-size: 32px;
    }

    .change-value {
        font-size: 24px;
    }

    .step-item h3 {
        font-size: 22px;
    }

    .step-item p {
        font-size: 15px;
    }

    .game-logo {
        margin-bottom: 35px;
    }

    .action-links .menu-item {
        font-size: 34px;
        padding: 14px 30px;
    }
    
    .character-image {
        height: 85vh;
    }
    
    .title-image {
        max-width: 350px;
    }
}

@media (max-width: 1200px) {
    .main-heading {
        font-size: 62px;
        margin-bottom: 30px;
    }

    .buy-text {
        font-size: 17px;
    }

    .section-title {
        font-size: 34px;
        margin: 30px 0 15px;
    }

    .ticker-value {
        font-size: 28px;
    }

    .change-value {
        font-size: 22px;
    }

    .steps-container {
        gap: 15px;
    }

    .step-item h3 {
        font-size: 20px;
    }

    .step-item p {
        font-size: 14px;
    }

    .game-logo {
        margin-bottom: 30px;
    }
    
    .character-image {
        height: 80vh;
    }

    .exchange-btn {
        font-size: 20px;
        padding: 12px 20px;
    }
}

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 80px 0 0;
        overflow: visible;
    }

    .text-content,
    .image-content {
        width: 100%;
    }

    .text-content {
        padding: 30px;
        order: 1;
    }

    .text-content.custom-scrollbar {
        padding: 30px;
        margin-right: 0;
    }

    .image-content {
        width: 100%;
        height: auto;
        min-height: 60vh;
        padding: 0;
        margin-top: -60px;
        justify-content: center;
        overflow: visible;
    }

    .character-image {
        height: auto;
        width: 90%;
        max-height: none;
        object-position: bottom center;
    }

    .main-heading {
        font-size: 50px;
        text-align: center;
    }

    .section-title {
        text-align: center;
        font-size: 32px;
    }

    .game-logo {
        text-align: center;
    }
    
    .title-image {
        max-width: 300px;
    }

    .buy-text {
        max-width: 600px;
        margin: 0 auto;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .action-links {
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .contract-address {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .address-text {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .text-content,
    .text-content.custom-scrollbar {
        padding: 20px;
    }

    .title-image {
        max-width: 250px;
    }

    .main-heading {
        font-size: 42px;
    }

    .section-title {
        font-size: 28px;
    }

    .buy-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .buy-text .quote {
        font-size: 26px;
    }

    .exchange-buttons {
        flex-direction: column;
    }
    
    .exchange-btn {
        width: 100%;
    }

    .price-box {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .price-ticker, .price-change {
        align-items: center;
        text-align: center;
    }

    .ticker-value {
        font-size: 30px;
    }

    .change-value {
        font-size: 24px;
    }

    .action-links {
        flex-direction: column;
        gap: 20px;
    }

    .action-links .menu-divider {
        transform: rotate(90deg);
    }

    .action-links .menu-item {
        font-size: 30px;
        width: 100%;
        text-align: center;
    }

    .image-content {
        margin-top: -40px;
    }
    
    .buy-page .version {
        bottom: 10px;
        left: 10px;
        font-size: 18px;
    }
}

@media (max-height: 800px) {
    .character-image {
        height: 85vh;
    }
}

@media (max-height: 700px) {
    .character-image {
        height: 80vh;
    }
} 