/* Solana Token Creator Section - Enhanced Modern Design */
.solana-token-creator {
    background: linear-gradient(145deg, var(--primary-dark), #081832, #05112b);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.solana-token-creator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 148, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(3, 13, 67, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 148, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.solana-token-creator::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 15s infinite alternate ease-in-out;
}

.solana-token-creator .container-fluid {
    max-width: none; /* Ensures full width across the screen */
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Particles for a more dynamic background */
.solana-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.solana-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(0, 148, 255, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.solana-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: particle-float 15s infinite linear;
}

.solana-particle:nth-child(2) {
    top: 70%;
    left: 20%;
    animation: particle-float 25s infinite linear;
}

.solana-particle:nth-child(3) {
    top: 40%;
    right: 15%;
    animation: particle-float 20s infinite linear reverse;
}

.solana-particle:nth-child(4) {
    bottom: 30%;
    right: 25%;
    animation: particle-float 18s infinite linear;
}

.solana-particle:nth-child(5) {
    top: 15%;
    right: 30%;
    animation: particle-float 22s infinite linear reverse;
}

@keyframes particle-float {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(20px) rotate(90deg); }
    50% { transform: translateY(0) translateX(40px) rotate(180deg); }
    75% { transform: translateY(30px) translateX(20px) rotate(270deg); }
    100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

/* Floating decorative elements */
.solana-token-creator::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.2) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.solana-token-creator::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.15) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

.solana-token-creator .section-header.centered {
    text-align: center;
    margin-bottom: 50px;
}

.solana-token-creator .section-title {
    font-size: 42px;
    background: linear-gradient(90deg, #9945FF, #14F195);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.solana-token-creator .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.token-creator-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.token-creator-card {
    background: rgba(3, 13, 67, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(0, 148, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 148, 255, 0.05);
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.token-creator-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 148, 255, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.token-creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.token-creator-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.token-creator-form .form-group {
    margin-bottom: 24px;
}

.token-creator-form .form-group:last-child {
    margin-bottom: 0;
}

.token-creator-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.token-creator-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(3, 13, 67, 0.6);
    border: 1px solid rgba(0, 148, 255, 0.15);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.token-creator-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 148, 255, 0.2);
    background: rgba(3, 13, 67, 0.8);
}

.token-creator-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.logo-upload-container {
    margin-bottom: 30px;
}

.logo-upload-area {
    border: 2px dashed rgba(0, 148, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 13, 67, 0.4);
    box-shadow: inset 0 0 20px rgba(0, 148, 255, 0.05);
}

.logo-upload-area:hover {
    border-color: var(--primary);
    background-color: rgba(0, 148, 255, 0.08);
    box-shadow: inset 0 0 30px rgba(0, 148, 255, 0.1);
}

.logo-upload-area.dragover {
    border-color: #14F195;
    background-color: rgba(20, 241, 149, 0.05);
}

.hidden-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.upload-icon {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.upload-placeholder p {
    margin-bottom: 8px;
}

.browse-text {
    color: #9945FF;
    text-decoration: underline;
    cursor: pointer;
}

.file-requirements {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.logo-preview {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.remove-logo-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.remove-logo-btn:hover {
    background-color: rgba(255, 59, 48, 0.8);
}

.create-token-btn {
    width: 100%;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--primary), #0078cc);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 148, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.create-token-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.create-token-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 148, 255, 0.4);
    background: linear-gradient(90deg, #0078cc, var(--primary));
}

.create-token-btn:hover::before {
    left: 100%;
}

.token-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.token-preview-card {
    background: rgba(3, 13, 67, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 148, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 148, 255, 0.1);
    width: 100%;
    max-width: 350px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.token-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 148, 255, 0.2);
}

.token-preview-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.token-preview-header h3 {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

.token-preview-content {
    padding: 30px;
    text-align: center;
}

.token-logo-preview {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
}

.token-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 13, 67, 0.6);
    color: rgba(0, 148, 255, 0.6);
    border: 2px solid rgba(0, 148, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 148, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.token-logo-placeholder::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(90deg, transparent, rgba(0, 148, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

#token-display-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.token-info h4 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.token-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.token-network {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries for Solana Token Creator */
/* Responsive Design Enhancements */
@media (max-width: 1200px) {
    .token-creator-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .solana-token-creator {
        padding: 60px 0;
    }

    .token-creator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 650px;
    }
    
    .token-preview {
        order: -1;
        display: flex;
        justify-content: center;
    }
    
    .token-preview-card {
        max-width: 320px;
    }
    
    .token-creator-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .token-creator-card {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .solana-token-creator {
        padding: 40px 0;
    }
    
    .token-creator-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .solana-token-creator .section-title {
        font-size: 32px;
    }
    
    .solana-token-creator .section-subtitle {
        font-size: 16px;
    }
    
    .logo-upload-area {
        min-height: 160px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .solana-token-creator {
        padding: 60px 0;
    }
    
    .solana-token-creator .section-title {
        font-size: 32px;
    }
    
    .token-creator-form .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.hidden {
    display: none;
}

/* Token Creator Animation Styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.solana-token-creator .button.processing {
    background: linear-gradient(90deg, #9945FF, #14F195, #9945FF);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
    pointer-events: none;
}

.solana-token-creator .button.success {
    background: #14F195;
}

.token-creator-form .form-control.error {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
}

.logo-upload-area.error {
    border-color: #ff3b30;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Animation Keyframes */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

/* Enhanced Token Network Badge */
.token-network {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 148, 255, 0.1);
    background: rgba(3, 13, 67, 0.8);
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 148, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    width: fit-content;
    border: 1px solid rgba(0, 148, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.network-badge span {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
}
