/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.tagline {
    opacity: 0.9;
    font-style: italic;
}

/* Navigation */
nav {
    background-color: #1a1a2e;
    padding: 0 30px;
    display: flex;
    gap: 5px;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 15px 25px;
    display: inline-block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background-color: #16213e;
    color: #fff;
}

nav a.active {
    background-color: #0f3460;
    border-bottom-color: #e94560;
    color: #fff;
}

/* Main Content */
main {
    padding: 30px;
}

/* Welcome Section */
.welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.welcome h2 {
    margin-bottom: 10px;
}

#user-display {
    font-weight: bold;
    font-size: 1.2em;
    color: #ffd700;
}

.date {
    margin-top: 10px;
    opacity: 0.9;
    font-size: 0.9em;
}

/* Features Grid */
.features {
    margin-bottom: 30px;
}

.features h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Dynamic Content */
.dynamic-content {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.dynamic-content h3 {
    margin-bottom: 15px;
    color: #333;
}

#content-area {
    min-height: 100px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Section Navigation */
.section-nav {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.section-nav h3 {
    margin-bottom: 15px;
    color: #333;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.nav-item {
    display: block;
    padding: 15px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* URL Parameters Info */
.url-params-info {
    background-color: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #2196f3;
}

.url-params-info h3 {
    color: #1565c0;
    margin-bottom: 15px;
}

.params-list {
    list-style: none;
    padding: 0;
}

.params-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
}

.params-list code {
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d32f2f;
    font-weight: 600;
}

.example {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3e0;
    border-radius: 4px;
}

/* Info Box */
.info-box {
    background-color: #e8f5e9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #4caf50;
}

.info-box h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.info-box ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.info-box li {
    margin-bottom: 8px;
    color: #555;
}

.note {
    background-color: #fff3e0;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #ff9800;
}

/* Tips */
.tips {
    background-color: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.tips h3 {
    color: #e65100;
    margin-bottom: 15px;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 10px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 4px;
}

/* Security Notice */
.security-notice {
    background-color: #fce4ec;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #e91e63;
}

.security-notice h3 {
    color: #c2185b;
    margin-bottom: 15px;
}

.security-notice ul {
    margin-left: 20px;
}

.security-notice li {
    margin-bottom: 8px;
    color: #555;
}

/* Debug Info */
.debug-info {
    background-color: #f3e5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #9c27b0;
}

.debug-info h3 {
    color: #7b1fa2;
    margin-bottom: 15px;
}

.debug-info ul {
    list-style: none;
    padding: 0;
}

.debug-info li {
    padding: 8px 0;
    color: #555;
}

.warning {
    color: #e65100;
    font-weight: 600;
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3e0;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: #f5f5f5;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

footer p {
    color: #666;
}

.version {
    font-size: 0.85em;
    color: #999;
    margin-top: 5px;
}

/* Welcome Section (Index) */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.welcome-section h2 {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    header h1 {
        font-size: 2em;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        text-align: center;
    }

    .feature-grid,
    .nav-grid {
        grid-template-columns: 1fr;
    }

    main {
        padding: 20px;
    }
}
