:root {
    --primary: #7E57C2;
    --primary-dark: #673AB7;
    --primary-light: #B39DDB;
    --secondary: #26A69A;
    --surface: #121212;
    --surface-light: #1E1E1E;
    --surface-lighter: #2D2D2D;
    --on-surface: #FFFFFF;
    --on-surface-muted: #B0B0B0;
    --accent: #FF4081;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

header {
    background: var(--gradient-1);
    padding: 3rem 0 2rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff10"><polygon points="0,0 1000,50 1000,100 0,100"/></svg>');
    background-size: cover;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo .material-icons {
    font-size: 3rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    background: var(--surface-light);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--surface-lighter);
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header .material-icons {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--on-surface);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--on-surface);
    margin: 2rem 0 1rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--on-surface-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--surface-lighter);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon .material-icons {
    font-size: 2.5rem;
    color: white;
}

/* Workflow Steps */
.workflow-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 2rem;
    background: var(--surface-lighter);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-top: 0;
}

code {
    background: var(--surface);
    color: var(--primary-light);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--surface-lighter);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn.primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn.secondary {
    background: var(--gradient-1);
    color: var(--on-surface);
    border: 1px solid var(--surface-lighter);
    margin-top: 15px;
}

.btn.secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

/* Endpoint Testing */
.endpoint-controls {
    background: var(--surface-lighter);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.endpoint-selector {
    margin-bottom: 1.5rem;
}

.endpoint-selector label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--on-surface);
}

.select-wrapper {
    position: relative;
    max-width: 500px;
}

.dropdown {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--surface-lighter);
    border-radius: 12px;
    color: var(--on-surface);
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.1);
}

.dropdown-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--on-surface-muted);
}
/* Make the custom API input visually match the dropdown */
.api-selector {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.api-selector label {
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-color, #fff);
}

/* ✅ Input matches dropdown look */
.api-input {
  background-color: var(--dropdown-bg, #1e1e1e);
  border: 1px solid var(--dropdown-border, #333);
  color: var(--dropdown-text, #fff);
  font-size: 1rem;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.api-input:focus {
  outline: none;
  border-color: var(--accent-color, #00bcd4);
  box-shadow: 0 0 6px var(--accent-color, #00bcd4);
}

.api-input::placeholder {
  color: #aaa;
}

.endpoint-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--surface-lighter);
}

.method-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.method-badge.get {
    background: var(--success);
    color: white;
}

.url-display {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--on-surface);
    word-break: break-all;
    flex: 1;
}

/* Response Section */
.response-section {
    background: var(--surface-lighter);
    border-radius: 16px;
    overflow: hidden;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-lighter);
}

.response-header .material-icons {
    color: var(--primary);
}

.response-container {
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.response-container pre {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--on-surface-muted);
    margin: 0;
}

.back-to-intro {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-lighter);
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, var(--warning) 0%, var(--error) 100%);
    margin-top: 3rem;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
}

.disclaimer .material-icons {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.disclaimer h3 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.disclaimer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: var(--surface-light);
    border-top: 1px solid var(--surface-lighter);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.luffy {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.footer-text {
    color: var(--on-surface-muted);
}

.footer-text a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--primary);
}

/* Category Selector Styles */
.category-selector {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.category-selector label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--on-surface);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 2rem 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .endpoint-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-main {
        flex-direction: column;
    }
}