/* ============================================
   NBA CHASE DOWN - GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
}

h2 {
    font-size: 2rem;
    color: #222;
    border-bottom: 3px solid #d32f2f;
    padding-bottom: 0.5em;
}

h3 {
    font-size: 1.5rem;
    color: #333;
}

h4 {
    font-size: 1.25rem;
    color: #444;
}

p {
    margin-bottom: 1em;
    text-align: justify;
}

a {
    color: #d32f2f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: #1a1a1a;
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #d32f2f;
    text-decoration: none;
}

.logo:hover {
    color: #ff5252;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d32f2f;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
    background-color: white;
}

article {
    margin-bottom: 2rem;
}

section {
    margin-bottom: 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: #d32f2f;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin: 0.5rem;
}

.cta-button:hover {
    background-color: #b71c1c;
    text-decoration: none;
}

/* ============================================
   IMAGES
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 4px;
}

figure {
    margin: 2rem 0;
    text-align: center;
}

figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ============================================
   LISTS
   ============================================ */

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============================================
   TABLES
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
}

table th {
    background-color: #d32f2f;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
}

table tr:hover {
    background-color: #f5f5f5;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */

blockquote {
    border-left: 4px solid #d32f2f;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #555;
    font-style: italic;
    background-color: #f9f9f9;
    padding: 1rem 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */

form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

button, input[type="submit"] {
    background-color: #d32f2f;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

button:hover, input[type="submit"]:hover {
    background-color: #b71c1c;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #d32f2f;
}

.breadcrumb span {
    color: #999;
}

/* ============================================
   SIDEBAR & RELATED CONTENT
   ============================================ */

.sidebar {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 2rem 0;
}

.sidebar h3 {
    margin-top: 0;
}

.related-posts {
    margin: 2rem 0;
}

.related-posts ul {
    list-style: none;
    margin-left: 0;
}

.related-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #ddd;
}

.related-posts a {
    color: #d32f2f;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h4 {
    color: white;
    margin-top: 0;
}

footer a {
    color: #d32f2f;
}

footer a:hover {
    color: #ff5252;
}

footer ul {
    list-style: none;
    margin-left: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

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

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    .container {
        padding: 0 15px;
    }

    table {
        font-size: 0.9rem;
    }

    table th, table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        display: block;
        padding: 0.5rem 0;
    }

    main {
        padding: 1.5rem 0;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.highlight {
    background-color: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid #28a745;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid #ffc107;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid #dc3545;
}
