
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0c0c0c;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 5px;
    border: 2px solid #0c0c0c;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

:root {
    --bg-color: #0c0c0c;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-red: #dc143c;
    --accent-red-hover: #ff1a4a;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-red: linear-gradient(135deg, #dc143c 0%, #7a0019 100%);
}

/* Ref Banner Styles */
.ref-banner {
    width: 100%;
    background: #2ecc71;
    /* Zielony kolor */
    color: #000;
    padding: 6px 0;
    /* Odchudzono z 10px na 6px */
    font-size: 0.85rem;
    font-weight: 700;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    display: none;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.2);
}

nav {
    transition: top 0.3s;
}

body.has-ref-banner nav {
    top: 33px;
}

body.has-ref-banner {
    padding-top: 33px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Elements */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
}

.bg-glow-bottom {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -300px;
    left: -300px;
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 40%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    background: var(--gradient-red);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.5);
    background: var(--accent-red-hover);
}

/* Bots Grid */
.section {
    padding: 100px 10%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    height: 3px;
    width: 60px;
    background: var(--accent-red);
    display: block;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.bot-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}

.bot-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bot-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(220, 20, 60, 0.1);
    color: var(--accent-red);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bot-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.bot-card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.bot-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.bot-link:hover {
    color: var(--accent-red);
}

/* Coming Soon */
.bot-card.soon {
    opacity: 0.7;
    border-style: dashed;
}

.bot-card.soon h3 {
    color: var(--text-dim);
}

/* Auth Section */
#auth-section {
    display: flex;
    align-items: center;
}

#user-info {
    background: var(--glass-bg);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

/* Admin Buttons */
.admin-btn {
    padding: 6px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}

.admin-btn.delete {
    background: rgba(220, 20, 60, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.admin-btn.delete:hover {
    background: var(--accent-red);
    color: white;
}

.admin-btn.edit {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.admin-btn.edit:hover {
    background: var(--text-main);
    color: black;
}

/* Spacer between content and footer */
.main-spacer {
    height: 100px;
    width: 100%;
}

/* Footer Improvements */
footer {
    padding: 100px 10% 60px;
    background: linear-gradient(to bottom, transparent, rgba(220, 20, 60, 0.03));
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 60px;
    text-align: left;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand p {
    color: var(--text-dim);
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-dev span {
    color: var(--text-main);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero .cta-button {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero p {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero .cta-button {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .bots-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Status Page Specific Styles */
.status-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.status-header {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.status-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.overall-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1.5rem;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.service-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.service-info p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.status-tag {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-tag.online {
    color: #2ecc71;
}

.status-tag.maintenance {
    color: #f1c40f;
}

.status-tag.offline {
    color: #e74c3c;
}

.uptime-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 15px;
    display: flex;
    gap: 2px;
}

.uptime-segment {
    flex: 1;
    height: 100%;
    background: #2ecc71;
    border-radius: 1px;
    opacity: 0.8;
}

.uptime-segment.issue {
    background: #e74c3c;
}