/* Base styles */
:root {
    --paper-color: #fafafa;
    --ink-color: #333;
    --accent-color: #4a4a4a;
    --highlight-color: #fff8dc;
    --line-color: #e0e0e0;
    --tag-color: #e0f7fa;
    --tag-border: #b2ebf2;
    --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --section-bg: #ffffff;
    --section-border: #e0e0e0;
    --notebook-bg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="%23e0e0e0" stroke-width="1"/><line x1="0" y1="20" x2="100" y2="20" stroke="%23e0e0e0" stroke-width="1"/><line x1="0" y1="40" x2="100" y2="40" stroke="%23e0e0e0" stroke-width="1"/><line x1="0" y1="60" x2="100" y2="60" stroke="%23e0e0e0" stroke-width="1"/><line x1="0" y1="80" x2="100" y2="80" stroke="%23e0e0e0" stroke-width="1"/></svg>');
}

body {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    color: var(--ink-color);
    background-color: var(--paper-color);
    margin: 0;
    padding: 20px;
}

/* Notebook container */
.notebook {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--line-color);
    padding-bottom: 20px;
}

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

.author-info {
    font-style: italic;
    color: var(--accent-color);
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--highlight-color);
    padding: 15px;
    margin-bottom: 30px;
    border-left: 3px solid var(--accent-color);
}

.table-of-contents h2 {
    margin-top: 0;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: var(--ink-color);
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* Section styles */
.section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: white;
    border: 1px solid var(--line-color);
}

.section h2 {
    border-bottom: 2px solid var(--line-color);
    padding-bottom: 10px;
    margin-top: 0;
}

/* Content styles */
.content {
    padding: 15px;
}

/* Sticky note effect */
.sticky-note {
    background-color: #fff8dc;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #ffd700;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Highlight styles */
.highlight {
    background-color: var(--highlight-color);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--line-color);
    color: var(--accent-color);
}

.contact-links {
    margin-top: 10px;
}

.contact-links a {
    color: var(--accent-color);
    margin: 0 10px;
    text-decoration: none;
}

.contact-links a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .notebook {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .section {
        padding: 10px;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }

    .notebook {
        box-shadow: none;
        padding: 0;
    }

    .table-of-contents {
        page-break-after: always;
    }

    .section {
        page-break-inside: avoid;
    }
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Project Card */
.project-card {
    background: white;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    padding: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
    position: relative;
}

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

/* Restricted Project Card */
.project-card[data-restricted="true"] {
    border: 2px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    position: relative;
    opacity: 0.8;
}

.project-card[data-restricted="true"]::before {
    content: "🔒";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    opacity: 0.6;
    z-index: 1;
}

.project-header {
    margin-bottom: 15px;
}

.project-header h3 {
    margin: 0 0 10px 0;
    color: var(--accent-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.project-description {
    margin-bottom: 15px;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--tag-color);
    border: 1px solid var(--tag-border);
    border-radius: 12px;
    font-size: 0.9em;
    color: var(--accent-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tag:hover {
    background-color: var(--tag-border);
}

/* Restricted Tag - Special styling */
.tag:contains("🔒") {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: 2px solid #c0392b;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(192, 57, 43, 0.3);
    animation: restrictedPulse 2s ease-in-out infinite;
}

/* Alternative approach using attribute selector */
.tag[data-restricted="true"] {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    border: 2px solid #dee2e6;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tag[data-restricted="true"]::before {
    content: "🔒 ";
    margin-right: 4px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Project Sections */
.project-sections {
    margin-top: 20px;
}

.project-sections details {
    margin-bottom: 15px;
    border: 1px solid var(--section-border);
    border-radius: 4px;
    background-color: var(--section-bg);
    transition: all 0.3s ease;
}

.project-sections details[open] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-sections summary {
    cursor: pointer;
    font-weight: bold;
    padding: 12px 15px;
    background-color: var(--highlight-color);
    border-radius: 4px 4px 0 0;
    position: relative;
}

.project-sections summary:hover {
    background-color: #f0f0f0;
}

.project-sections summary::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

.project-sections details[open] summary::after {
    transform: rotate(45deg);
}

.section-content {
    margin-top: 0;
    padding: 15px;
    border-top: 1px solid var(--section-border);
    background-color: var(--section-bg);
}

.section-content p {
    margin: 0 0 10px 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Remove update timeline styles */
.update-timeline,
.update,
.update-date,
.update-content,
.update-tags {
    display: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Project Card Link */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-link:hover .project-card {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Restricted Project Card Link */
.project-card-link:has(.project-card[data-restricted="true"]) {
    cursor: not-allowed;
}

.project-card-link:has(.project-card[data-restricted="true"]):hover .project-card {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Notebook Page Effect */
.notebook-page {
    background-image: var(--notebook-bg);
    background-size: 100px 100px;
    padding: 40px;
    position: relative;
    min-height: 100vh;
}

.notebook-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: -1;
}

/* Handwritten Text Effect */
.handwritten {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    line-height: 1.8;
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.1);
}

/* Margin Notes */
.margin-note {
    float: right;
    width: 200px;
    margin: 0 0 20px 20px;
    padding: 10px;
    background: var(--highlight-color);
    border: 1px solid var(--line-color);
    font-style: italic;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Page Numbers */
.page-number {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8em;
    color: var(--accent-color);
    font-family: 'Times New Roman', serif;
}

/* Back Link */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1.2em;
    font-family: 'Times New Roman', serif;
}

.back-link:hover {
    text-decoration: underline;
} 