/* style.css - Modro-fialový design s hamburger menu */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-bg: #0a0a1a;
    --secondary-bg: #1a1a2e;
    --card-bg: #16213e;
    --accent-bg: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --border-color: #334155;
    --shadow-light: rgba(59, 130, 246, 0.1);
    --shadow-medium: rgba(59, 130, 246, 0.2);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-card: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    --gradient-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0891b2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-secondary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Header Container */
.header-container {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
}

.header-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
}

/* Logo sekce */
.logo-section {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1001;
}

.logo-section:hover {
    transform: translateY(-2px);
}

.logo-section .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.75rem;
}

.logo-section i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
    color: var(--accent-blue);
}

.logo-section:hover i {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.hamburger-menu:hover {
    background: rgba(59, 130, 246, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding-top: 80px;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    left: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--text-primary);
    transform: translateX(8px);
}

.mobile-nav-link.active {
    border-left: 3px solid var(--accent-blue);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Copy IP Button */
.copy-ip-button {
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    padding: 0.75rem 1.5rem;
    color: white;
    font-size: 0.9rem;
}

.copy-ip-button::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;
}

.copy-ip-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: var(--gradient-hover);
}

.copy-ip-button:hover::before {
    left: 100%;
}

.copy-ip-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Main Container */
.container {
    background: var(--gradient-card);
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1400px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.6;
}

/* Headings */
h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    letter-spacing: -1px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Tables */
.table-wrapper {
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
}

table thead th {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    padding: 1.5rem 2rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

table thead th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.4;
}

table tbody td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    vertical-align: middle;
    transition: all 0.3s ease;
}

table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

table tbody tr:nth-child(even) {
    background: rgba(22, 33, 62, 0.3);
}

table tbody tr:nth-child(odd) {
    background: rgba(26, 26, 46, 0.3);
}

table tbody tr:hover.punishment-row {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

table tbody tr:hover.punishment-row td {
    color: var(--text-primary);
}

.reason-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Detail Rows */
.detail-row {
    background: var(--accent-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-content-cell {
    padding: 2rem;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
    background: var(--gradient-card);
    position: relative;
}

.detail-content-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.detail-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-item {
    background: rgba(22, 33, 62, 0.4);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.detail-label {
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

/* Forms */
form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

form input[type="text"] {
    background: rgba(22, 33, 62, 0.6);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 250px;
}

form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: rgba(22, 33, 62, 0.8);
}

form input[type="text"]::placeholder {
    color: var(--text-muted);
}

form button, form a {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

form button:hover, form a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: var(--gradient-hover);
}

/* Pagination */
.pagination {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.pagination-button {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.pagination-button:hover:not(.disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    background: var(--gradient-hover);
}

.pagination-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--border-color);
    box-shadow: none;
}

/* Detail Toggle Button */
.detail-toggle-button {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-blue);
}

.detail-toggle-button:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* Error Messages */
.bg-red-900 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 127, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    color: #fca5a5;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-style: italic;
    font-size: 1.25rem;
    background: var(--gradient-card);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .copy-ip-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .container {
        padding: 2rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    table thead th, table tbody td {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .detail-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    form {
        flex-direction: column;
        align-items: stretch;
    }
    
    form input[type="text"] {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-section .logo-text {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    table thead th, table tbody td {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .reason-cell {
        max-width: 150px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}