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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* Header ve Navigasyon */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: relative;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.logo::after {
    content: "PromptShare";
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2563eb;
}

/* Mobil menü butonu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobil sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 2rem;
}

.sidebar.active {
    right: 0;
}

.sidebar-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.sidebar ul {
    list-style: none;
    margin-top: 2rem;
}

.sidebar ul li {
    margin-bottom: 1rem;
}

.sidebar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
}

.sidebar a:hover {
    color: #2563eb;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Prompt Detay Sayfası */
.prompt-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.prompt-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.prompt-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
}

.read-more-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #1d4ed8;
}

.prompt-header {
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info h3 {
    color: #333;
    font-size: 18px;
}

.date {
    color: #666;
    font-size: 14px;
}

.prompt-content {
    margin-bottom: 20px;
}

.prompt-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.prompt-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.prompt-meta {
    margin-bottom: 20px;
}

.category {
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: #666;
}

.prompt-actions {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.prompt-actions button,
.prompt-actions a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.prompt-actions button:hover,
.prompt-actions a:hover {
    background-color: #e0e0e0;
    color: #333;
}

.prompt-actions .liked {
    background-color: #ff4d4d;
    color: white;
}

.prompt-actions .share-btn {
    margin-left: auto;
}

/* Yorumlar Bölümü */
.comments-section {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comments-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

#comment-form {
    margin-bottom: 30px;
}

#comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
    font-family: inherit;
}

#comment-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#comment-form button:hover {
    background-color: #0056b3;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
}

.login-prompt a {
    color: #007bff;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    margin-bottom: 10px;
}

.comment-header h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.comment p {
    color: #444;
    line-height: 1.6;
}

/* Ana Sayfa */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background-color: #1d4ed8;
}

.hero h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1rem;
}

.hero p {
    color: #000000;
    font-size: 1.2rem;
}

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

.prompt-card:hover {
    transform: translateY(-5px);
}

.prompt-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.prompt-card p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    margin-top: 4rem;
    color: #4b5563;
}

/* Gradient Animasyonu */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.welcome-section {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(-45deg,
            #FF6B6B,
            #4ECDC4,
            #45B7D1,
            #96C93D,
            #E056FD,
            #20E3B2,
            #F7971E,
            #6C5CE7,
            #A8E6CF,
            #FF9A9E);
    background-size: 500% 500%;
    animation: gradientAnimation 30s ease infinite;
    color: white;
    position: relative;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.welcome-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Toast Bildirimi */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    display: none;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
    max-width: calc(100% - 40px);
    text-overflow: ellipsis;
    overflow: hidden;
}

.toast.show {
    display: block;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

[data-theme="dark"] .toast {
    background-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

/* Responsive Tasarım */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .logo::after {
        content: "PS";
    }

    nav ul {
        display: none;
    }

    .theme-language-selector {
        display: none;
    }

    .sidebar .theme-language-selector {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .sidebar .theme-language-selector select {
        width: 100%;
        padding: 0.5rem;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
    }

    main {
        padding: 1rem;
    }

    .prompts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

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

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

    .filter-section {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box,
    #categoryFilter {
        width: 100%;
        max-width: 100%;
    }

    .prompt-actions {
        flex-wrap: wrap;
    }

    .prompt-actions button,
    .prompt-actions a {
        flex: 1;
        justify-content: center;
    }
}

/* Form Karanlık Tema */
[data-theme="dark"] .form-container {
    background-color: #2d2d2d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .form-group label {
    color: #fff;
}

[data-theme="dark"] .form-group input {
    background-color: #3d3d3d;
    border-color: #4d4d4d;
    color: #fff;
}

[data-theme="dark"] .form-group input:focus {
    border-color: #6d6d6d;
}

[data-theme="dark"] .btn {
    background-color: #2563eb;
}

[data-theme="dark"] .btn:hover {
    background-color: #1d4ed8;
}

[data-theme="dark"] .error {
    color: #ff4d4d;
}

[data-theme="dark"] .success {
    color: #4caf50;
}

[data-theme="dark"] a {
    color: #3b82f6;
}

[data-theme="dark"] a:hover {
    color: #60a5fa;
}

/* Prompt Modal */
.prompt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.prompt-modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.prompt-modal-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prompt-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.prompt-modal-close:hover {
    color: #333;
}

[data-theme="dark"] .prompt-card::after {
    background: linear-gradient(to bottom, transparent, var(--card-bg, #1a1a1a));
}

[data-theme="dark"] .prompt-modal-content {
    background: var(--card-bg, #1a1a1a);
    color: var(--text-color, #fff);
}

[data-theme="dark"] .prompt-modal-close {
    color: #999;
}

[data-theme="dark"] .prompt-modal-close:hover {
    color: #fff;
}