:root {
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #0f172a;
}
.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.35;
    animation: float 20s infinite alternate;
}
.blob-1 {
    width: 400px; height: 400px;
    background: #3b82f6;
    top: -100px; left: -100px;
}
.blob-2 {
    width: 300px; height: 300px;
    background: #8b5cf6;
    bottom: -50px; right: -50px;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.header-spacer { flex: 1; }
.header-center { flex: 2; text-align: center; }

h1 {
    font-weight: 800;
    font-size: 2.8rem;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.3rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.user-badge {
    flex: 1;
    text-align: right;
    background: rgba(0,0,0,0.3);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
.user-badge span {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.btn-logout {
    background: none;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}
.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.65rem 1.3rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Info Section */
.info-section {
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    backdrop-filter: blur(12px);
}

.info-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.info-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.trend-line {
    display: block;
    margin-bottom: 2px;
    font-size: 0.82rem;
}

/* Action Disclaimer */
.action-disclaimer {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent);
    padding: 0.9rem 1.2rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd5e1;
}

/* Section Titles */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.section-badge {
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    vertical-align: middle;
    margin-left: 8px;
}
.section-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* High Conviction Signal Cards */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.signal-card {
    background: var(--card-bg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 1.3rem;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.ticker {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    align-items: center;
}

.data-label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.data-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.val-entry { color: #f8fafc; }
.val-target { color: var(--success); }
.val-stop { color: var(--danger); }

.vol-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* All Signals Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

thead {
    background: rgba(0, 0, 0, 0.3);
}

th {
    padding: 0.8rem 0.7rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 0.7rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    white-space: nowrap;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.78rem;
    color: white;
}
.status-green { background: #238636; }
.status-yellow { background: #d29922; }
.status-red { background: #da3633; }
.status-gray { background: #6e7681; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.empty-state h2 {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Örnek Portföy Styles */
.portfolio-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.stat-card-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.subsection-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Green and Red colors for values */
.value-green {
    color: #10b981 !important;
}

.value-red {
    color: #ef4444 !important;
}

.font-weight-bold {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .tabs { flex-direction: column; gap: 0.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .header-row { flex-direction: column; gap: 1rem; }
    .header-spacer { display: none; }
    .user-badge { justify-content: center; flex: unset; width: 100%; }
    .signals-grid { grid-template-columns: 1fr; }
    .portfolio-stats-grid { grid-template-columns: 1fr; }
    table { font-size: 0.75rem; }
    th, td { padding: 0.5rem 0.4rem; }
}
