/* notes.css - Notes pages specific styles */

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    gap: 40px;
}

.sidebar {
    position: sticky;
    top: 100px;
    width: 280px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 8px;
}

.sidebar a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sidebar a:hover, .sidebar a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateX(5px);
}

.content {
    flex: 1;
    animation: fadeIn 0.8s ease-out;
}

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

.hero {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.card p, .card ul {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.card ul {
    padding-left: 30px;
}

.card li {
    margin-bottom: 10px;
}

.code-container {
    position: relative;
    margin: 25px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.code-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-header span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #4CAF50;
    border-color: #4CAF50;
}

pre[class*="language-"] {
    margin: 0;
    border-radius: 0;
    font-size: 0.95rem;
}

code[class*="language-"] {
    font-family: 'Fira Code', 'Courier New', monospace;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-left: 4px solid #667eea;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 25px 0;
}

.highlight-box p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

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

    .hero {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .card {
        padding: 25px;
    }

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

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