/* TradingView Style Layout CSS */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.5;
}

/* Header Styles */
.tv-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-bottom: 1px solid #333333;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.tv-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    height: 100%;
}

/* Sol Taraf - Logo ve Menü */
.tv-header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.tv-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.tv-logo:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.02);
}

.tv-logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tv-logo-image svg {
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
    transition: all 0.3s ease;
}

.tv-logo:hover .tv-logo-image svg {
    filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.5));
    transform: scale(1.05);
}

.tv-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
}

.tv-logo-fallback {
    display: none;
}

.tv-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tv-main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tv-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    color: #cccccc;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.tv-nav-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.tv-nav-item.active {
    color: #000000;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(255,255,255,0.3);
    font-weight: 700;
}

.tv-nav-item i {
    font-size: 1.1rem;
}

/* Orta - Arama Çubuğu */
.tv-header-center {
    flex: 1;
    max-width: 1000px;
    margin: 0 40px;
}

/* Büyük ekranlarda arama çubuğunu daha da genişlet */
@media (min-width: 1400px) {
    .tv-header-center {
        max-width: 1200px;
    }
}

.tv-search-container {
    position: relative;
    width: 100%;
}

.tv-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.1);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    backdrop-filter: blur(25px);
    animation: dropdownSlide 0.3s ease-out;
    overflow: hidden;
}

.tv-search-result {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tv-search-result::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
    transition: width 0.3s ease;
    z-index: 1;
}

.tv-search-result:hover::before {
    width: 4px;
}

.tv-search-result:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(2px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.tv-search-result:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
}

.tv-search-result:first-child {
    border-radius: 16px 16px 0 0;
}

.tv-search-result-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255,255,255,0.2);
}

.tv-search-result:hover .tv-search-result-icon {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
    transform: scale(1.05);
}

.tv-search-result-placeholder {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    line-height: 1;
}

.tv-asset-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.tv-search-result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.tv-search-result-arrow {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tv-search-result:hover .tv-search-result-arrow {
    color: #ffffff;
    transform: translateX(4px);
}

.tv-search-result-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.tv-search-result-symbol {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}



.tv-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    z-index: 2;
}

.tv-search-input {
    width: 100%;
    padding: 22px 26px 22px 58px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 60px;
}

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

.tv-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Sağ Taraf - Kullanıcı Menüsü */
.tv-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tv-watchlist-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.tv-watchlist-btn:hover {
    color: #000000;
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.3);
}

.tv-watchlist-text {
    display: inline;
    font-weight: 600;
}

.tv-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-user-dropdown {
    position: relative;
}

.tv-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tv-user-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.tv-user-btn:hover .tv-user-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(33, 37, 41, 0.3);
}

.tv-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000 !important;
    font-weight: 700;
    font-size: 1.2rem;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.tv-user-avatar i {
    color: #000000 !important;
    font-size: 1.2rem;
}

.tv-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    display: none;
}

.tv-dropdown-arrow {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.tv-user-dropdown:hover .tv-dropdown-arrow {
    transform: rotate(180deg);
}

.tv-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    min-width: 220px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.tv-user-dropdown:hover .tv-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tv-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.tv-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    transform: translateX(4px);
}

.tv-dropdown-item i {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.tv-dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 8px 0;
}

.tv-auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tv-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tv-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
}

.tv-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,255,255,0.2);
}

.tv-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    border: 1px solid #ffffff;
    font-weight: 700;
}

.tv-btn-primary:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.4);
    border-color: #f0f0f0;
}

.tv-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tv-header-center {
        max-width: 400px;
        margin: 0 24px;
    }
}

@media (max-width: 1024px) {
    .tv-header-container {
        padding: 0 16px;
    }
    
    .tv-header-left {
        gap: 20px;
    }
    
    .tv-nav-item span {
        display: none;
    }
    
    .tv-nav-item {
        padding: 10px 8px;
    }
    
    .tv-watchlist-text {
        display: none;
    }
    
    .tv-user-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .tv-header-center {
        max-width: 250px;
        margin: 0 16px;
    }
    
    .tv-search-input {
        padding: 16px 18px 16px 48px;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .tv-search-input::placeholder {
        content: "Ara...";
    }
    
    .tv-header-left {
        gap: 12px;
    }
    
    .tv-logo-text {
        display: none;
    }
    
    .tv-nav-item {
        padding: 8px 6px;
    }
    
    .tv-auth-buttons {
        gap: 8px;
    }
    
    .tv-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .tv-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .tv-header-container {
        padding: 0 12px;
    }
    
    .tv-header-left {
        gap: 8px;
    }
    
    .tv-nav-item {
        padding: 6px 4px;
    }
    
    .tv-auth-buttons {
        gap: 4px;
    }
    
    .tv-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* Modal Styles */
.tv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.tv-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    animation: slideUp 0.3s ease;
}

.tv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

.tv-modal-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.tv-modal-close {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.tv-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.tv-modal-body {
    padding: 0;
    height: 600px;
}

.tv-chart-widget {
    width: 100%;
    height: 100%;
    border-radius: 0 0 16px 16px;
}

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

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

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Admin Panel Button Styles */
.tv-admin-item {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin: 4px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.tv-admin-item::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.5s;
}

.tv-admin-item:hover::before {
    left: 100%;
}

.tv-admin-item:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8831a 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4) !important;
}

.tv-admin-item i {
    color: #fff !important;
    font-size: 16px !important;
}

.tv-admin-item span {
    color: #fff !important;
    font-weight: 600 !important;
} 