* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease-in-out;
}

nav {
    background: #2c3e50;
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #2980b9;
}

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

.homework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 2rem;
}

/* Animasyonlar için ekleme */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ödev kartları için animasyon */
.homework-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.homework-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.homework-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
    line-height: 1.4;
}

.homework-card p {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.code-preview {
    margin-top: auto;
    max-height: 120px;
    overflow: hidden;
    border-radius: 4px;
    font-size: 0.85rem;
    border-left: 3px solid #3498db;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 0;
}

.code-preview code {
    background: transparent !important;
    padding: 10px !important;
    font-family: monospace;
    white-space: pre-wrap;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.card-header {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

/* Modal için animasyon */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    justify-content: center;
    align-items: center;
}

.modal.active {
    background: rgba(0,0,0,0.5);
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

/* AOS animasyonları için özel stiller */
[data-aos="zoom-in"] {
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

.close {
    float: right;
    cursor: pointer;
    font-size: 1.5rem;
}

.admin-panel {
    display: none;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-form input, 
.admin-form textarea,
.admin-form select {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-form button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.admin-form button:hover {
    background: #27ae60;
}

.language-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.6rem;
    background: #2c3e50;
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Prism.js özelleştirmeleri */
pre[class*="language-"] {
    margin: 1rem 0;
    border-radius: 4px;
}

.token.comment {
    font-style: italic;
}

.login-panel {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.homework-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.homework-info {
    flex: 1;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #c82333;
}

.homeworks-container {
    margin-top: 2rem;
}

.home-btn, .admin-btn {
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.home-btn:hover, .admin-btn:hover {
    background: #0056b3;
}
.purpose-section {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

.new-label {
    background-color: #ff5722;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
    animation: pulse 2s infinite;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}
