/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #0a0a0a;
}

header {
    background-color: rgba(30, 30, 30, 0.9);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: static;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    margin-bottom: 1.5rem;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0.5rem 1rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

nav ul li a:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1.5rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

main {
    max-width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

section {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin-bottom: 3rem;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

h2 {
    color: #3498db;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.8rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50%;
    height: 3px;
    background-color: #2ecc71;
    transition: width 0.3s ease;
}

section:hover h2::after {
    width: 100%;
}

h3 {
    color: #2ecc71;
    font-size: 1.7rem;
    margin: 2rem 0 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.endpoint {
    background-color: rgba(44, 62, 80, 0.7);
    border-left: 6px solid #3498db;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.endpoint:hover {
    background-color: rgba(44, 62, 80, 0.9);
    transform: translateX(5px);
}

pre {
    background-color: rgba(44, 62, 80, 0.8);
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 1rem;
    line-height: 1.6;
}

code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
}

#rate-limits {
    background-color: rgba(192, 57, 43, 0.8);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.9);
    color: #ecf0f1;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, #2ecc71, transparent);
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 10px;
    border: 3px solid rgba(30, 30, 30, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
}

/* Code container styles */
.code-container {
    position: relative;
    margin-bottom: 2.5rem;
    background-color: rgba(30, 42, 56, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(58, 75, 92, 0.5);
    transition: all 0.4s ease;
}

.code-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.code-container pre {
    padding: 2.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(74, 144, 226, 0.9);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.copy-btn:hover {
    background-color: rgba(58, 123, 200, 0.9);
    opacity: 1;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.copy-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.copy-btn.copied {
    background-color: rgba(46, 204, 113, 0.9);
}

.copy-btn.copied:hover {
    background-color: rgba(39, 174, 96, 0.9);
}

.code-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #4a90e2, #2ecc71);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.code-container:hover::before {
    opacity: 1;
}

/* Responsive design for all devices */
@media (max-width: 1200px) {
    main {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.7rem 0;
    }
    
    .code-container pre {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .copy-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

