/* ============================================
   RİVA BİLİŞİM - Mor/Siyah Animasyonlu Tema
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0010;
    --bg-secondary: #0f0018;
    --bg-card: #130020;
    --bg-card2: #1a002e;
    --purple-light: #c084fc;
    --purple-mid: #a855f7;
    --purple-dark: #7c3aed;
    --purple-deep: #4c1d95;
    --accent: #e879f9;
    --accent2: #818cf8;
    --text-primary: #f1e8ff;
    --text-secondary: #c4b5d4;
    --text-muted: #7c6b8a;
    --border: #2d1a40;
    --border-glow: #7c3aed44;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #6366f1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Animated Background ---- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 10%, rgba(232, 121, 249, 0.06) 0%, transparent 40%);
    animation: bgPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgPulse {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-2%, 2%) scale(1.02); }
    100% { transform: translate(2%, -2%) scale(0.98); }
}

/* Floating particles */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--purple-mid);
    border-radius: 50%;
    opacity: 0;
    animation: float linear infinite;
}
@keyframes float {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ---- Navbar ---- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 0, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 40px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.1);
}

.logo {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
    transition: filter 0.3s ease;
}

.logo img:hover {
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.9));
}

.logo-text {
    background: linear-gradient(135deg, #e879f9, #a855f7, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s, text-shadow 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-mid), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--purple-light);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---- Buttons ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    background: linear-gradient(135deg, var(--purple-mid), var(--accent));
}

.btn-secondary {
    background: transparent;
    color: var(--purple-light);
    border: 1px solid var(--purple-dark);
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--purple-mid);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #065f46, #10b981);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ---- Container / Cards ---- */
.container {
    max-width: 960px;
    margin: 40px auto;
    background: rgba(19, 0, 32, 0.8);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.5s ease both;
}

.container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), transparent, rgba(168,85,247,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.container + .container {
    animation-delay: 0.1s;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

h3 .gradient-text,
.gradient-text {
    background: linear-gradient(135deg, #e879f9, #a855f7, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* ---- Form Elements ---- */
label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    margin-top: 12px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    margin: 6px 0 14px;
    background: rgba(13, 0, 22, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--purple-mid);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background: rgba(19, 0, 32, 0.9);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

select option {
    background: #1a002e;
    color: var(--text-primary);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---- Tables ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

thead th {
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

tbody tr {
    border-bottom: 1px solid rgba(45, 26, 64, 0.5);
    transition: background 0.2s;
}

tbody tr:hover {
    background: rgba(124, 58, 237, 0.06);
}

td {
    color: var(--text-secondary);
    padding: 13px 16px;
    font-size: 14px;
    vertical-align: middle;
}

td code {
    background: rgba(124, 58, 237, 0.12);
    color: var(--purple-light);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-success  { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger   { background: rgba(239, 68, 68, 0.15);  color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info     { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-purple   { background: rgba(124, 58, 237, 0.15); color: #c084fc; border: 1px solid rgba(124, 58, 237, 0.3); }
.badge-open     { background: rgba(124, 58, 237, 0.2);  color: #e879f9; border: 1px solid rgba(232, 121, 249, 0.4); }
.badge-closed   { background: rgba(75, 85, 99, 0.2);    color: #9ca3af; border: 1px solid rgba(75, 85, 99, 0.3); }
.badge-answered { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* ---- Alert / Notice ---- */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.alert-danger  { background: rgba(239, 68, 68, 0.1);  border: 1px solid rgba(239, 68, 68, 0.3);  color: #f87171; }
.alert-info    { background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.3); color: #c084fc; }

/* ---- Bank Box ---- */
.bank-box {
    background: rgba(124, 58, 237, 0.08);
    padding: 20px 24px;
    border-left: 4px solid var(--purple-mid);
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid var(--border-glow);
}

/* ---- Stat Cards ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(19, 0, 32, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-dark), var(--accent));
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e879f9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- Ticket Specific ---- */
.ticket-card {
    background: rgba(19, 0, 32, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.ticket-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--purple-mid), var(--accent));
    border-radius: 3px 0 0 3px;
}

.ticket-card:hover {
    border-color: var(--purple-dark);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
    transform: translateX(4px);
}

.ticket-id {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 60px;
}

.ticket-subject {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ticket-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Ticket message bubbles */
.msg-bubble {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    position: relative;
    animation: fadeInUp 0.3s ease both;
}

.msg-bubble.user-msg {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-right: 40px;
}

.msg-bubble.staff-msg {
    background: rgba(232, 121, 249, 0.08);
    border: 1px solid rgba(232, 121, 249, 0.2);
    margin-left: 40px;
}

.msg-author {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-author.user { color: var(--purple-light); }
.msg-author.staff { color: var(--accent); }

.msg-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.msg-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---- Discord Button ---- */
.btn-discord {
    background: linear-gradient(135deg, #4f46e5, #5865F2);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

/* ---- Glow animations ---- */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
    50%       { box-shadow: 0 0 30px rgba(168, 85, 247, 0.7), 0 0 60px rgba(168, 85, 247, 0.3); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.glow-border {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ---- Divider ---- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 24px 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--purple-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple-mid); }

/* ---- Section header ---- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--purple-mid);
}

/* ---- Priority dots ---- */
.priority-high   { color: #f87171; }
.priority-medium { color: #fbbf24; }
.priority-low    { color: #34d399; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .navbar { padding: 12px 16px; }
    .nav-links { gap: 12px; }
    .container { margin: 20px 12px; padding: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ticket-card { flex-direction: column; align-items: flex-start; }
}
