/* Base CSS for YurtKocaeli - Student Dormitory Website */
/* Primary: black | Accent: deep blue */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* Navigation Menu Styles - Critical */
.nav-menu li {
    margin-bottom: 0 !important;
}

.nav-menu,
.footer-nav,
nav ul,
footer ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-menu li::before,
.nav-menu li::after,
.footer-nav li::before,
.footer-nav li::after,
nav ul li::before,
nav ul li::after,
footer ul li::before,
footer ul li::after {
    content: none !important;
    display: none !important;
}

nav ul li::marker,
footer ul li::marker,
.nav-menu li::marker,
.footer-nav li::marker {
    content: none !important;
    display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0a0a0a !important;
}

h1 {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
}

h2 {
    font-size: 2rem !important;
    margin-bottom: 1.25rem !important;
}

h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

h4 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Content Lists Styling */
main ul:not(.nav-menu):not(.footer-nav),
main ol,
.content-list {
    list-style: none !important;
    padding-left: 1.5rem !important;
    margin: 1rem 0 !important;
}

main ul:not(.nav-menu):not(.footer-nav) li,
main ol li,
.content-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

main ul:not(.nav-menu):not(.footer-nav) li::before,
.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #1e3a8a;
    border-radius: 50%;
}

main ol {
    counter-reset: list-counter;
}

main ol li {
    counter-increment: list-counter;
}

main ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #1e3a8a;
}

/* Links */
a {
    color: #1e3a8a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1e3a8a;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1e40af;
    color: #ffffff;
}

.btn-secondary {
    background-color: #0a0a0a;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #262626;
    color: #ffffff;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #1e3a8a;
    color: #ffffff;
    font-weight: 600;
}

tr:hover {
    background-color: #f3f4f6;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    padding: 6rem 1.5rem !important;
    min-height: 80vh !important;
    display: flex !important;
    align-items: center !important;
}

.hero h1 {
    color: #ffffff !important;
    font-size: 3rem !important;
    margin-bottom: 1.5rem !important;
}

.hero p {
    color: #e5e7eb !important;
    font-size: 1.25rem !important;
}

/* Sections */
section {
    padding: 4rem 1.5rem;
}

.section-dark {
    background-color: #0a0a0a;
    color: #ffffff;
}

.section-dark h2,
.section-dark h3 {
    color: #ffffff !important;
}

.section-light {
    background-color: #f8fafc;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: #e5e7eb;
    padding: 3rem 1.5rem 1.5rem;
}

footer p {
    color: #e5e7eb !important;
}

footer a {
    color: #93c5fd;
}

footer a:hover {
    color: #bfdbfe;
}

/* Logo - No shadow */
.logo img,
img.logo {
    box-shadow: none !important;
}

/* Icons */
.icon {
    color: #1e3a8a;
}

.icon-white {
    color: #ffffff;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    .hero {
        padding: 4rem 1rem !important;
        min-height: auto !important;
    }

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

    section {
        padding: 3rem 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.375rem !important;
    }

    .hero h1 {
        font-size: 1.75rem !important;
    }
}
