/* MaxiASP.com - Turkish ASP Programming Community */
/* Early 2000s Aesthetic with Modern Polish */

:root {
    --primary-red: #C00000;
    --primary-black: #000000;
    --primary-gray: #808080;
    --bg-light: #F9F9F9;
    --bg-medium: #EFEFEF;
    --bg-dark: #D2D2D2;
    --accent-green: #296530;
    --accent-blue: #123456;
    --sidebar-width: 180px;
}

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

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--primary-black);
    background: var(--bg-light);
    background-image: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
}

/* Header */
header {
    background: linear-gradient(180deg, #CC0000 0%, #A00000 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-bottom: 3px solid var(--primary-black);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-red);
    font-size: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.site-tagline {
    font-size: 13px;
    opacity: 0.95;
    font-style: italic;
}

/* Top Navigation */
.top-nav {
    background: var(--primary-black);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-nav ul {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.top-nav li {
    margin: 0;
}

.top-nav a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.top-nav a:hover,
.top-nav a.active {
    background: var(--primary-red);
    color: white;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.top-nav a:hover::after {
    width: 80%;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    background: linear-gradient(180deg, #f0f0f0 0%, #e0e0e0 100%);
    padding: 12px 15px;
    font-weight: bold;
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    font-size: 13px;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav a {
    display: block;
    padding: 8px 15px;
    color: var(--primary-black);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--bg-light);
    border-left-color: var(--primary-red);
    color: var(--primary-red);
    padding-left: 20px;
}

.sidebar-info {
    padding: 15px;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    background: #fafafa;
}

/* Main Content */
.main-content {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

.page-header {
    border-bottom: 3px solid var(--primary-red);
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.page-title {
    color: var(--primary-red);
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 8px;
}

.page-date {
    color: var(--primary-gray);
    font-size: 12px;
    font-style: italic;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--primary-gray);
}

.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: var(--primary-red);
}

/* Content Sections */
.content-section {
    margin: 30px 0;
}

.section-title {
    color: var(--primary-red);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-dark);
}

.subsection-title {
    color: var(--primary-black);
    font-size: 16px;
    font-weight: bold;
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul, ol {
    margin: 15px 0 15px 30px;
}

li {
    margin-bottom: 8px;
}

/* Images */
.hero-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.image-caption {
    font-size: 12px;
    color: var(--primary-gray);
    font-style: italic;
    text-align: center;
    margin-top: 8px;
}

/* Code Blocks */
.code-block {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-left: 4px solid var(--primary-red);
    border-radius: 3px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.code-block code {
    color: #333;
}

/* Info Boxes */
.info-box {
    background: #fffacd;
    border: 1px solid #f0e68c;
    border-left: 4px solid #ffd700;
    border-radius: 3px;
    padding: 15px;
    margin: 20px 0;
}

.warning-box {
    background: #ffe4e1;
    border: 1px solid #ffcccb;
    border-left: 4px solid var(--primary-red);
    border-radius: 3px;
    padding: 15px;
    margin: 20px 0;
}

.tip-box {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-left: 4px solid var(--accent-green);
    border-radius: 3px;
    padding: 15px;
    margin: 20px 0;
}

/* Links */
a {
    color: var(--accent-blue);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-red);
}

.content-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-blue);
}

.content-link:hover {
    border-bottom-style: solid;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th {
    background: var(--primary-red);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

td {
    border: 1px solid #ddd;
    padding: 10px;
}

tr:nth-child(even) {
    background: var(--bg-light);
}

tr:hover {
    background: #fff9e6;
}

/* Resource Lists */
.resource-list {
    list-style: none;
    margin: 20px 0;
}

.resource-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.resource-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    border-color: var(--primary-red);
    transform: translateX(5px);
}

.resource-title {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 8px;
}

.resource-description {
    color: #555;
    font-size: 13px;
}

/* Footer */
footer {
    background: var(--primary-black);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 3px solid var(--primary-red);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--primary-red);
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .top-nav ul {
        justify-content: center;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar {
        position: static;
    }

    .main-content {
        padding: 20px;
    }

    .hero-image {
        height: 200px;
    }
}

/* Retro Elements */
.retro-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
}

.date-stamp {
    color: var(--primary-gray);
    font-size: 11px;
    font-style: italic;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-content {
    animation: fadeIn 0.5s ease;
}

/* Print Styles */
@media print {
    .sidebar, .top-nav, footer {
        display: none;
    }

    .container {
        grid-template-columns: 1fr;
    }
}
