/* Search Page Specific Styles */

/* Search Info Section */
.search-info-section {
    padding-top: 0px;
    padding-bottom: 10px;
    position: relative;
    z-index: 10;
}

.info-banner {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 180, 180, 0.1));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-left: 15px;
    margin-right: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(5px);
}

.info-title {
    color: #00ff41;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.info-description {
    color: #bbb;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
}

.purchase-link {
    color: #00ff80;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.purchase-link:hover {
    color: #fff;
    background: rgba(0, 255, 65, 0.2);
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

/* Search Section */
.search-section {
    padding: 20px 0 80px;
    min-height: calc(100vh - 400px);
    position: relative;
    z-index: 10;
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Search Controls */
.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    gap: 45px;
    overflow-x: auto;
}

.page-info-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.current-page-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.page-label {
    color: #888;
    font-size: 0.95rem;
    min-width: 90px;
    text-align: left;
}

.page-input {
    width: min(300px, 100%);
    max-width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 5px;
    color: #00ff41;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    text-align: center;
    transition: all 0.3s;
    box-sizing: border-box;
}

.page-input:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.go-btn {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
    box-sizing: border-box;
}

.go-btn:hover {
    background: rgba(0, 255, 65, 0.3);
    border-color: #00ff41;
    transform: translateY(-1px);
}

/* Hex Search Section */
.hex-search-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin: 10px 0;
    width: 100%;
}

.search-label {
    color: #888;
    font-size: 0.95rem;
    min-width: 90px;
    text-align: left;
}

.hex-search-input {
    width: min(300px, 100%);
    max-width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 180, 180, 0.3);
    border-radius: 5px;
    color: #00b4b4;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    transition: all 0.3s;
    box-sizing: border-box;
}

.hex-search-input:focus {
    outline: none;
    border-color: #00b4b4;
    box-shadow: 0 0 10px rgba(0, 180, 180, 0.3);
}

.hex-search-input::placeholder {
    color: #666;
    font-size: 0.85rem;
}

.search-hex-btn {
    background: rgba(0, 180, 180, 0.2);
    color: #00b4b4;
    border: 1px solid rgba(0, 180, 180, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
    box-sizing: border-box;
}

.search-hex-btn:hover {
    background: rgba(0, 180, 180, 0.3);
    border-color: #00b4b4;
    transform: translateY(-1px);
}

.reset-search-btn {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
    border: 1px solid rgba(255, 100, 100, 0.3);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 80px;
    box-sizing: border-box;
}

.reset-search-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: #ff6464;
    transform: translateY(-1px);
}

.hex-range-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
}

.range-label {
    color: #888;
    font-size: 0.95rem;
    min-width: 90px;
    text-align: left;
}

.range-value {
    color: #00b4b4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: rgba(0, 180, 180, 0.1);
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid rgba(0, 180, 180, 0.3);
    width: min(calc(300px + 10px + 80px), 100%);
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Navigation Buttons Container */
.navigation-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Common Navigation Button Styles */
.nav-btn {
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    outline: none;
    min-width: 140px;
    justify-content: center;
}

/* First Page Button */
.first-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

.first-btn:hover {
    background: linear-gradient(135deg, #a569bd, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

/* Previous Button */
.prev-btn {
    background: linear-gradient(135deg, #00ff41, #00b4b4);
    color: #000;
}

.prev-btn:hover {
    background: linear-gradient(135deg, #00ff80, #00e6e6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.4);
}

/* Random Search Button */
.random-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
}

.random-btn:hover {
    background: linear-gradient(135deg, #ff7979, #ffa726);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

/* Next Button */
.next-btn {
    background: linear-gradient(135deg, #00ff41, #00b4b4);
    color: #000;
}

.next-btn:hover {
    background: linear-gradient(135deg, #00ff80, #00e6e6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.4);
}

/* Last Page Button */
.last-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

.last-btn:hover {
    background: linear-gradient(135deg, #a569bd, #9b59b6);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

/* Button Active States */
.nav-btn:active {
    transform: translateY(0);
}

/* Button Disabled States */
.nav-btn:disabled {
    background: rgba(100, 100, 100, 0.3);
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Wallets Container */
.wallets-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Wallet Card */
.wallet-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.wallet-card:hover {
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
}

/* Hex Key Display */
.hex-key-display {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.wallet-number {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(0, 180, 180, 0.2);
    color: #00b4b4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.hex-key-label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hex-key-value {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    word-break: break-all;
    font-weight: 600;
    margin-bottom: 8px;
}

.decimal-value {
    color: #999;
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}

/* Wallet Content */
.wallet-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Crypto Section */
.crypto-section {
    border: 1px solid rgba(100, 100, 100, 0.2);
    border-radius: 8px;
    padding: 15px;
    background: rgba(10, 10, 10, 0.5);
}

.bitcoin-section {
    border-color: rgba(247, 147, 26, 0.3);
}

.ethereum-section {
    border-color: rgba(98, 126, 234, 0.3);
}

/* Crypto Header */
.crypto-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(100, 100, 100, 0.2);
}

.crypto-icon {
    width: 30px;
    height: 30px;
}

.crypto-icon svg {
    width: 100%;
    height: 100%;
}

.crypto-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Address Item */
.address-item {
    margin-bottom: 15px;
}

.address-label {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-value {
    color: #ddd;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
    flex: 1;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid rgba(100, 100, 100, 0.2);
    transition: all 0.2s;
}

.address-value:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 255, 65, 0.3);
}

.balance-badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.balance-loading {
    background: rgba(100, 100, 100, 0.2);
    color: #888;
}

.balance-zero {
    background: rgba(100, 100, 100, 0.1);
    color: #666;
}

.balance-positive {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    animation: pulse 2s infinite;
}

.balance-error {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    }
}

/* Private Keys Section */
.private-keys {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(100, 100, 100, 0.2);
}

.key-item {
    margin-bottom: 10px;
}

.key-label {
    color: #ff6b6b;
    font-size: 0.75rem;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-value {
    color: #ff9999;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    word-break: break-all;
    padding: 8px;
    background: rgba(255, 0, 0, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

/* Loading Indicator */
.loading-indicator {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-indicator.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 65, 0.2);
    border-top-color: #00ff41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-indicator p {
    color: #00ff41;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        gap: 15px;
    }

    .info-banner {
    margin : 0px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 10px 15px;
        min-width: unset;
    }
    
    .search-controls .page-info-center {
        order: -1;
        margin-bottom: 10px;
        align-items: stretch;
        max-width: none;
        width: 100% !important;
    }
    
    .search-controls .page-info-center .current-page-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        width: 100% !important;
    }
    
    .search-controls .page-info-center .page-label {
        min-width: unset;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .search-controls .page-info-center .page-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 8px;
        min-width: 0 !important;
    }
    
    .search-controls .page-info-center .go-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center;
        box-sizing: border-box !important;
    }
    
    .search-controls .page-info-center .hex-search-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100% !important;
    }
    
    .search-controls .page-info-center .search-label {
        min-width: unset;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .search-controls .page-info-center .hex-search-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 8px;
        min-width: 0 !important;
    }
    
    .search-controls .page-info-center .search-hex-btn,
    .search-controls .page-info-center .reset-search-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-content: center;
        margin-bottom: 5px;
        box-sizing: border-box !important;
    }
    
    .search-controls .page-info-center .hex-range-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100% !important;
    }
    
    .search-controls .page-info-center .range-label {
        min-width: unset;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .search-controls .page-info-center .range-value {
        width: 100% !important;
        max-width: 100% !important;
        word-break: break-all;
        overflow-wrap: break-word;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .wallet-content {
        grid-template-columns: 1fr;
    }
    
    .wallet-card {
        padding: 15px;
    }
    
    .hex-key-value {
        font-size: 0.8rem;
    }
    
    .decimal-value {
        display: none;
    }
    
    .address-value {
        font-size: 0.75rem;
        padding: 6px;
    }
    
    .key-value {
        font-size: 0.7rem;
        padding: 6px;
    }
    
    .balance-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

/* 태블릿 크기 (768px ~ 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .info-title {
        font-size: 1.05rem;
    }
    
    .info-description {
        font-size: 0.95rem;
    }
}

/* 큰 모바일 크기 (480px ~ 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .info-title {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .info-title i {
        display: none;
    }
    
    .info-description {
        font-size: 0.85rem;
        line-height: 1.4;
        flex-wrap: nowrap;
    }
    
    .info-description i {
        display: none;
    }
}

/* 중간 모바일 크기 (375px ~ 480px) */
@media (max-width: 480px) and (min-width: 376px) {
    .info-banner {
        padding: 15px;
    }
    
    .info-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .info-title i {
        display: none;
    }
    
    .info-description {
        font-size: 0.75rem;
        line-height: 1.3;
        flex-wrap: nowrap;
    }
    
    .info-description i {
        display: none;
    }
    
    .page-info-center {
        gap: 12px;
    }
    
    .current-page-info,
    .hex-search-info,
    .hex-range-info {
        gap: 10px;
    }
}

/* 매우 작은 모바일 크기 (320px 이하) */
@media (max-width: 320px) {
    .info-banner {
        padding: 10px;
    }
    
    .info-title {
        font-size: 0.6rem;
        line-height: 1.1;
        gap: 5px;
    }
    
    .info-title i {
        display: none;
    }
    
    .info-description {
        font-size: 0.55rem;
        line-height: 1.1;
        gap: 5px;
        flex-wrap: nowrap;
    }
    
    .info-description i {
        display: none;
    }
}

/* 작은 모바일 크기 (375px 이하) */
@media (max-width: 375px) {
    .search-container {
        padding: 0 15px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .search-controls {
        padding: 20px 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .page-info-center {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .page-label,
    .search-label,
    .range-label {
        font-size: 0.85rem;
    }
    
    .page-input,
    .hex-search-input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.85rem;
        padding: 6px;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .go-btn,
    .search-hex-btn,
    .reset-search-btn {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.8rem;
        padding: 8px 12px;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .range-value {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.8rem;
        padding: 6px;
        word-break: break-all;
        overflow-wrap: break-word;
        line-height: 1.2;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
}

/* 매우 작은 모바일 추가 스타일 (320px 이하) */
@media (max-width: 320px) {
    .search-container {
        padding: 0 10px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .search-controls {
        padding: 15px 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .page-info-center {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .navigation-buttons {
        gap: 6px;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .page-label,
    .search-label,
    .range-label {
        font-size: 0.8rem;
    }
    
    .page-input,
    .hex-search-input {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.8rem;
        padding: 6px;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .go-btn,
    .search-hex-btn,
    .reset-search-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 6px 10px;
        font-size: 0.75rem;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .range-value {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 0.75rem;
        padding: 6px;
        word-break: break-all;
        overflow-wrap: break-word;
        line-height: 1.2;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .wallet-number {
        position: static;
        display: block;
        margin: 0 auto 10px;
        width: fit-content;
    }
    
    .crypto-header {
        gap: 8px;
    }
    
    .crypto-icon {
        width: 25px;
        height: 25px;
    }
    
    .crypto-name {
        font-size: 1rem;
    }
    
    .hex-key-value {
        font-size: 0.7rem;
    }
    
    .decimal-value {
        font-size: 0.65rem;
    }
}
