/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0A0E13;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* Yellow/Orange Brand Gradients */
.gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.gradient-bg {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
}

.gradient-border {
    position: relative;
    background: #0D0D0F;
    border-radius: 12px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border-radius: 12px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Sidebar Navigation */
.sidebar {
    width: 240px;
    background: #0F1419;
    border-right: 1px solid #1E2328;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #8B949E;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.menu-item:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: #FF8C00;
    border-left: 3px solid #FF8C00;
    padding-left: 13px;
}

.menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    position: relative;
}

/* Livestreams locked styling */
.livestreams-locked {
    opacity: 0.6;
    color: #5A5A5A !important;
}

.livestreams-locked:hover {
    background: rgba(90, 90, 90, 0.1) !important;
    color: #7A7A7A !important;
    transform: none !important;
}

.menu-lock {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

/* Shake animation for locked items */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #1E2328;
}

.create-coin-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000000;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.create-coin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.create-coin-btn:active {
    transform: translateY(0);
}

.connect-wallet-btn {
    background: transparent;
    color: #8B949E;
    border: 1px solid #1E2328;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.connect-wallet-btn:hover {
    border-color: #FF8C00;
    color: #FF8C00;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    background: #0A0E13;
    min-height: 100vh;
    padding-bottom: 80px; /* Space for disclaimer */
}

/* Activity Bar */
.activity-bar {
    background: #0F1419;
    border-bottom: 1px solid #1E2328;
    padding: 16px 24px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 50;
}

.activity-item {
    display: inline-block;
    animation: scroll-left 50s linear infinite;
    margin-right: 120px;
    padding: 8px 16px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.activity-text {
    color: #B0B0B0;
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes scroll-left {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Controls Section */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #1E2328;
    gap: 1rem;
    background: #0A0E13;
    position: relative;
    z-index: 40;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    background: #161B22;
    border: 1px solid #1E2328;
    border-radius: 8px;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 0.9rem;
    width: 240px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-input::placeholder {
    color: #6B7280;
}

.search-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-group {
    display: flex;
    gap: 1rem;
}

.toggle-label {
    color: #8B949E;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    background: #1E2328;
    color: #8B949E;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: #FFD700;
    color: #000000;
}

.sort-select {
    background: #161B22;
    border: 1px solid #1E2328;
    color: #8B949E;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Categories */
.categories {
    padding: 20px 24px;
    border-bottom: 1px solid #1E2328;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #0A0E13;
    position: relative;
    z-index: 40;
}

.category-tag {
    background: transparent;
    border: 1px solid #1E2328;
    color: #8B949E;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
}

.category-tag:hover {
    border-color: #FF8C00;
    color: #FF8C00;
    transform: translateY(-1px);
}

.category-tag.active {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border-color: transparent;
    color: #000000;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* Tokens Container */
.tokens-container {
    padding: 32px 24px;
    background: #0A0E13;
    position: relative;
    z-index: 30;
}

.token-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #FFFFFF;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

/* Font Awesome Icon Styling */
.form-group label i,
.menu-icon i,
.upload-icon i,
.social-btn i {
    margin-right: 0.5rem;
    color: #FF8C00;
    transition: color 0.3s ease;
}

.menu-icon i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.social-btn i {
    margin-right: 0;
    font-size: 0.85rem;
}

.upload-icon i {
    font-size: 2rem;
    color: #FFD700;
    margin-right: 0;
    margin-bottom: 0.5rem;
}

.req-item i {
    color: #FFD700;
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.btn-text i {
    margin-right: 0.5rem;
}

.gradient-text i {
    margin-right: 0.5rem;
}

/* Social Media Section Styling */
.social-media-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid rgba(255, 140, 0, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.section-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.optional {
    font-size: 0.8rem;
    font-weight: 400;
    color: #B0B0B0;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-left: auto;
}

.social-media-section .form-group {
    margin-bottom: 1rem;
}

.social-media-section .form-group:last-child {
    margin-bottom: 0;
}

.social-media-section input[type="url"] {
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.social-media-section input[type="url"]:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.social-media-section input[type="url"]:valid {
    border-color: rgba(46, 204, 113, 0.5);
}

.social-media-section input[type="url"]:invalid:not(:focus):not(:placeholder-shown) {
    border-color: rgba(231, 76, 60, 0.5);
}

.file-upload {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: #FF8C00;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-text span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-upload-text small {
    color: #B0B0B0;
}

/* Upload Requirements */
.upload-requirements {
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.req-item {
    margin-bottom: 4px;
    color: #E0E0E0;
}

.req-item:last-child {
    margin-bottom: 0;
}

.required {
    color: #FF6B6B;
    font-weight: 700;
}

/* Enhanced File Upload Area */
.file-upload-area {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    left: 0;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.upload-main-text {
    font-weight: 600;
    font-size: 1rem;
    color: #FFFFFF;
}

.upload-sub-text {
    color: #B0B0B0;
    font-size: 0.85rem;
}

/* Enhanced Image Preview */
.image-preview {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #E0E0E0;
}

.remove-image {
    background: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: translateY(-1px);
}

.preview-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.preview-container img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    object-fit: cover;
}

.crop-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(255, 215, 0, 0.8);
    border-radius: 8px;
    pointer-events: none;
    background: rgba(255, 215, 0, 0.1);
}

.crop-guides {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 215, 0, 0.8);
    border-radius: 50%;
}

.preview-note {
    color: #B0B0B0;
    font-size: 0.8rem;
    text-align: center;
    display: block;
}

/* Upload States */
.file-upload.dragover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.file-upload.error {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.05);
}

.create-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000000;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 140, 0, 0.4);
}

.create-btn:active {
    transform: translateY(0);
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loader::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Live Feed */
.live-feed {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.live-feed h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.feed-container {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #9945FF transparent;
}

.feed-container::-webkit-scrollbar {
    width: 6px;
}

.feed-container::-webkit-scrollbar-track {
    background: transparent;
}

.feed-container::-webkit-scrollbar-thumb {
    background: #FF8C00;
    border-radius: 3px;
}

.feed-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
}

.feed-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.feed-details {
    flex: 1;
}

.feed-name {
    font-weight: 600;
    color: #FFFFFF;
}

.feed-symbol {
    color: #FF8C00;
    font-size: 0.9rem;
}

.feed-price {
    color: #FFD700;
    font-weight: 600;
    white-space: nowrap;
}

.feed-loader {
    text-align: center;
    color: #B0B0B0;
    padding: 2rem;
}

/* Tokens Container */
.tokens-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    /* Prevent layout breaks */
    overflow: hidden;
    position: relative;
}

/* Tokens Grid - PUMP.FUN STYLE LAYOUT */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns on desktop */
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Force grid behavior */
    position: relative;
    z-index: 1;
    /* Ensure proper grid alignment */
    justify-items: stretch;
    align-items: start;
    /* Prevent grid items from escaping */
    contain: layout;
}

/* Token Grid Items - Container with social buttons */
.token-grid-item {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    /* Container for both token-card and social buttons */
}

/* TOKEN CARDS - REBUILT FROM SCRATCH */
.token-card {
    background: #0D0D0F;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* SIMPLE 2-COLUMN FLEXBOX - NO BULLSHIT */
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: flex-start;
    
    width: 100%;
    box-sizing: border-box;
}

.token-card:hover {
    transform: translateY(-4px);
    border-color: #FF8C00;
    box-shadow: 0 12px 40px rgba(255, 140, 0, 0.15);
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.token-card:hover::before {
    opacity: 1;
}

/* LEFT COLUMN - IMAGE ONLY */
.token-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0; /* Never shrink */
}

.token-card:hover .token-image {
    border-color: #FF8C00;
    transform: scale(1.05);
}

/* RIGHT COLUMN - CONTENT STACK */
.token-content {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0; /* Allow text truncation */
}

/* CONTENT ELEMENTS */
.token-creator {
    color: #8B949E;
    font-size: 0.75rem;
    line-height: 1.2;
}

.creator-address {
    color: #FF8C00;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.creator-address:hover {
    color: #FFD700;
}

/* Removed obsolete .token-creator a rule - using .creator-address span instead */

.token-market-cap {
    color: #FFD700;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.2;
}

.token-replies {
    color: #8B949E;
    font-size: 0.75rem;
    line-height: 1.2;
}

.token-description {
    color: #B0B0B0;
    font-size: 0.8rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Social Media Buttons - positioned after token-card */
.social-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 8px 0 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 6px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    border-color: #FF8C00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.2);
}

.social-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1DA1F2;
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.2);
}

.social-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088CC;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

.social-btn.website:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.view-all {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
    font-weight: 600;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FF8C00;
}

/* Disclaimer */
.disclaimer {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #1E2328;
    padding: 16px 24px;
    color: #8B949E;
    font-size: 0.8rem;
    z-index: 200;
    font-weight: 500;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #0D0D0F;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    padding: 0;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
}

.modal-close {
    background: none;
    border: none;
    color: #B0B0B0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wallet-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FF8C00;
}

.wallet-option img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.wallet-info {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-info small {
    color: #B0B0B0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-modal .modal-content {
    text-align: center;
}

.success-content {
    padding: 1rem 0;
}

.success-token-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #FFD700;
}

.success-token-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.success-token-symbol {
    color: #FF8C00;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.success-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    text-decoration: none;
    text-align: center;
    border: none;
}

.success-btn:hover {
    transform: translateY(-2px);
}

.success-btn.primary {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000000;
}

.success-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: #0D0D0F;
    border: 1px solid #333;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.toast.success {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
}

.toast.error {
    border-color: #FF4444;
    background: rgba(255, 68, 68, 0.1);
}

.toast.info {
    border-color: #FF8C00;
    background: rgba(255, 140, 0, 0.1);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #FF8C00;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tokens-container {
        padding: 16px;
    }
    
    .tokens-grid {
        grid-template-columns: repeat(2, 1fr); /* Fixed 2 columns on tablet */
        gap: 14px;
    }
    
    .token-grid-item {
        min-height: auto;
    }
    
    .controls-section {
        padding: 20px;
    }
    
    .categories {
        padding: 16px 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
        padding-bottom: 100px; /* More space for disclaimer on mobile */
    }
    
    .disclaimer {
        left: 200px;
        padding: 12px 16px;
        font-size: 0.75rem;
    }
    
    .controls-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 16px;
    }
    
    .controls-right {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .toggle-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .categories {
        padding: 12px 16px;
        gap: 6px;
    }
    
    .category-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .tokens-container {
        padding: 12px;
    }
    
    .tokens-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .token-grid-item {
        min-height: auto;
    }
    
    .token-card {
        padding: 10px;
        width: 100%;
        height: auto;
        min-height: auto;
        gap: 10px;
        /* MAINTAIN 2-COLUMN LAYOUT ON MOBILE */
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .token-image {
        width: 50px;
        height: 50px;
    }
    
    .activity-bar {
        padding: 12px 16px;
    }
    
    .activity-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0.5rem;
    }
    
    .menu-text {
        display: none;
    }
    
    .logo span {
        display: none;
    }
    
    .main-content {
        margin-left: 60px;
        padding-bottom: 120px; /* Even more space on very small screens */
    }
    
    .disclaimer {
        left: 60px;
        font-size: 0.7rem;
        padding: 12px;
        line-height: 1.4;
    }
    
    .controls-section {
        padding: 12px;
    }
    
    .categories {
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .category-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .tokens-container {
        padding: 16px 12px;
    }
    
    .token-card {
        padding: 12px;
        border-radius: 12px;
        /* MAINTAIN 2-COLUMN LAYOUT ON SMALL MOBILE */
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .activity-bar {
        padding: 8px 12px;
    }
    
    .activity-item {
        margin-right: 60px;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
} 

/* Enhanced Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Search Input Enhanced */
.search-input {
    background: #161B22;
    border: 1px solid #1E2328;
    border-radius: 8px;
    padding: 10px 16px;
    color: #FFFFFF;
    font-size: 0.9rem;
    width: 240px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #FF8C00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.search-input::placeholder {
    color: #6B7280;
}

/* Search Button Enhanced */
.search-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Token Image Enhanced */
.token-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
}

.token-card:hover .token-image {
    border-color: #FF8C00;
    transform: scale(1.05);
}

/* Token Stats Enhanced */
.token-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #1a1a1a;
}



/* Create Coin Button Enhanced */
.create-coin-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    color: #000000;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.create-coin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.4);
}

.create-coin-btn:active {
    transform: translateY(0);
}

/* Menu Items Enhanced */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #8B949E;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.menu-item:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: #FF8C00;
    border-left: 3px solid #FF8C00;
    padding-left: 13px;
}

.menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Activity Bar Enhanced */
.activity-item {
    display: inline-block;
    animation: scroll-left 50s linear infinite;
    margin-right: 120px;
    padding: 8px 16px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.activity-text {
    color: #B0B0B0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Enhanced Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1E2328;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700 0%, #FF8C00 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF6B35 100%);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #FF8C00;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus Styles */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #FF8C00;
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: rgba(255, 140, 0, 0.3);
    color: #FFFFFF;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 16px 24px;
    border-radius: 12px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    margin-bottom: 8px;
    transform: translateX(400px);
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 350px;
    word-wrap: break-word;
    opacity: 0.9; /* High opacity for readability */
}

.toast.show {
    transform: translateX(0);
}

.toast.dismiss {
    transform: translateX(400px);
    opacity: 0;
}

.toast.info {
    background: rgba(255, 140, 0, 0.85); /* Orange with high opacity */
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.toast.success {
    background: rgba(34, 197, 94, 0.85); /* Green with high opacity */
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.toast.error {
    background: rgba(239, 68, 68, 0.85); /* Red with high opacity */
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast:hover {
    opacity: 1;
    transform: translateX(-4px) scale(1.02);
} 