/* DinoDB Website - Main Stylesheet */

:root {
    --primary-color: #007AFF;
    --secondary-color: #5AC8FA;
    --background-dark: #1C1C1E;
    --background-light: #F2F2F7;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --card-background: #2C2C2E;
    --code-background: #1E1E1E;
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    --warning-color: #FF9F0A;
    --success-color: #30D158;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    width: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.download-btn, .back-link {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.download-btn:hover, .back-link:hover {
    transform: translateY(-2px);
    color: white !important;
}

.back-link {
    background: transparent;
    color: var(--primary-color) !important;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--secondary-color) !important;
    transform: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 13px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    background: var(--card-background);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

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

/* Links */
.aws-link, .external-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.aws-link:hover, .external-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.external-link::after {
    content: "↗";
    margin-left: 5px;
    font-size: 0.9rem;
}

/* Code blocks */
.code-block {
    background: var(--code-background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-block code {
    color: var(--text-primary);
}

/* Info boxes */
.info-box, .warning-box, .success-box {
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-box {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid var(--primary-color);
}

.info-box .info-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.warning-box {
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid var(--warning-color);
}

.warning-box .warning-icon {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.success-box {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid var(--success-color);
}

.success-box .success-icon {
    color: var(--success-color);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--card-background);
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}