/* X (Twitter) Media Page Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: #0f1419;
    font-size: 15px;
    line-height: 1.5;
}

/* Main Layout */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Sidebar */
.left-sidebar {
    width: 275px;
    min-height: 100vh;
    padding: 0 12px;
    border-right: 1px solid #eff3f4;
    background: #ffffff;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 12px;
    font-size: 28px;
    color: #0f1419;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 9999px;
    color: #0f1419;
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    transition: background 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(15, 20, 25, 0.1);
}

.lang-toggle {
    cursor: pointer;
    user-select: none;
}

.lang-text {
    font-weight: 600;
    color: #1d9bf0;
}

.nav-item-icon {
    margin-right: 20px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    background: #1d9bf0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Main Content Area */
.main-content {
    flex: 1;
    max-width: 900px;
    border-right: 1px solid #eff3f4;
    background: #ffffff;
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #eff3f4;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-content {
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.back-arrow {
    color: #0f1419;
    font-size: 20px;
    margin-right: 32px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.back-arrow:hover {
    background: rgba(15, 20, 25, 0.1);
}

.header-info h1 {
    font-size: 20px;
    font-weight: 800;
    color: #0f1419;
    margin-bottom: 0;
}

.header-info .subtitle {
    font-size: 13px;
    color: #536471;
}

/* Profile Header */
.profile-header {
    position: relative;
}

.profile-banner {
    width: 100%;
    height: 200px;
    background: #fbd915;
    position: relative;
}

.profile-info {
    padding: 12px 16px;
    position: relative;
}

.profile-avatar {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: #1d9bf0;
    position: absolute;
    top: -67px;
    left: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    margin-top: 75px;
}

.profile-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f1419;
}

.edit-profile-btn {
    padding: 6px 16px;
    border: 1px solid #cfd9de;
    border-radius: 20px;
    background: #ffffff;
    color: #0f1419;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
}

.edit-profile-btn:hover {
    background: #f7f9f9;
}

.profile-handle {
    font-size: 15px;
    color: #536471;
    margin-top: 2px;
}

.profile-bio {
    font-size: 15px;
    color: #0f1419;
    margin-top: 12px;
    line-height: 1.5;
}

.info-boxes {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.ca-box {
    display: inline-block;
    padding: 6px 12px;
    background: #fbd915;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1419;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    user-select: none;
}

.ca-box:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.ca-box:active {
    transform: scale(0.98);
}

.ca-label {
    font-weight: 700;
}

.ca-value {
    font-family: monospace;
}

.info-box {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.info-box-whales {
    background: #e259ff;
    color: #ffffff;
}

.info-box-wallets {
    background: #47afff;
    color: #ffffff;
}

.info-box-trending {
    background: #1551fb;
    color: #ffffff;
}

.trending-arrow {
    width: 14px;
    height: 14px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #eff3f4;
    background: #ffffff;
}

.nav-tab {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    color: #536471;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 4px solid transparent;
    transition: background 0.2s;
}

.nav-tab:hover {
    background: rgba(15, 20, 25, 0.03);
}

.nav-tab.active {
    color: #0f1419;
    border-bottom-color: #1d9bf0;
}

/* Container */
.container {
    padding: 0;
    background: #ffffff;
}

/* Form Section */
.form-section {
    padding: 16px;
    border-bottom: 1px solid #eff3f4;
}

.form-section h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f1419;
}

.prompt-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cfd9de;
    border-radius: 4px;
    padding: 12px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.prompt-wrapper:focus-within {
    border-color: #1d9bf0;
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.1);
}

.prompt-prefix {
    font-size: 15px;
    font-weight: 700;
    color: #0f1419;
    margin-right: 8px;
    white-space: nowrap;
}

.prompt-wrapper input[type="text"] {
    flex: 1;
    border: none;
    padding: 0;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    color: #0f1419;
}

.prompt-wrapper input[type="text"]:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.prompt-wrapper input[type="text"]::placeholder {
    color: #536471;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #cfd9de;
    border-radius: 4px;
    font-family: inherit;
    background: #ffffff;
    color: #0f1419;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #1d9bf0;
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.1);
}

button,
input[type="submit"] {
    background: #1d9bf0;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover,
input[type="submit"]:hover {
    background: #1a8cd8;
}

button:disabled {
    background: #8ecdf8;
    cursor: not-allowed;
}

/* Media Grid - 3 columns like X */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: #ffffff;
}

.media-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f7f9f9;
    cursor: pointer;
    position: relative;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.media-item:hover img {
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    padding: 16px;
    border-bottom: 1px solid #eff3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-left {
    display: flex;
    gap: 20px;
}

.stat-item {
    color: #536471;
    font-size: 14px;
}

.stat-item strong {
    color: #0f1419;
    font-weight: 700;
}

.search-box {
    display: flex !important;
    align-items: center;
}

.search-box input {
    width: 200px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #cfd9de;
    border-radius: 20px;
    background: #eff3f4;
}

.search-box input:focus {
    outline: none;
    background: #ffffff;
    border-color: #1d9bf0;
}

/* Modal/Overlay for expanded view */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #eff3f4;
    border-radius: 16px;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.modal-header {
    padding: 16px;
    border-bottom: 1px solid #eff3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: transparent;
    color: #0f1419;
    font-size: 24px;
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(15, 20, 25, 0.1);
}

.modal-body {
    padding: 16px;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
}

.modal-prompt {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f1419;
}

.modal-date {
    font-size: 14px;
    color: #536471;
    margin-bottom: 16px;
}

.modal-actions {
    padding: 16px;
    border-top: 1px solid #eff3f4;
}

/* Links */
a {
    color: #1d9bf0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #536471;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #536471;
}

.empty-state h3 {
    font-size: 31px;
    font-weight: 800;
    color: #0f1419;
    margin-bottom: 8px;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    margin: 16px;
    border-radius: 8px;
    background: #e8f5fd;
    border: 1px solid #b3e0ff;
    color: #0f1419;
}

.alert-error {
    background: #fce8e8;
    border-color: #f4a1a1;
}

/* Queue status */
.queue-status {
    background: #fef7e0;
    padding: 16px;
    margin: 16px;
    border-radius: 8px;
    border: 1px solid #f9e3a3;
    color: #0f1419;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #536471;
    font-size: 13px;
    border-top: 1px solid #eff3f4;
}

/* Responsive */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 88px;
    }
    
    .nav-item-text {
        display: none;
    }
    
    .nav-item {
        justify-content: center;
    }
    
    .nav-item-icon {
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .left-sidebar {
        display: none;
    }
    
    .main-content {
        border-right: none;
    }
    
    .header-content {
        padding: 12px;
    }
    
    .nav-tab {
        font-size: 13px;
        padding: 12px 0;
    }
    
    .form-section {
        padding: 12px;
    }
    
    .profile-banner {
        height: 150px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        top: -50px;
    }
    
    .profile-details {
        margin-top: 55px;
    }
}

/* Hide elements in new design */
.category-box,
hr {
    display: none;
}

/* X-style Icons (SVG) */
.icon-home,
.icon-notifications,
.icon-community {
    width: 26px;
    height: 26px;
}

.icon-home svg,
.icon-notifications svg,
.icon-community svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
