/* Reset and Base Styles */
* {
    
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #111827;
    color: #ffffff;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background-color: #111827;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f2937;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.navbar-brand span {
    margin-left: 0.5rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0rem;
    margin-left: auto;
}

.nav-link {
    color: #a0a6b8;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #ffffff;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Navigation */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: #111827;
    border-left: 1px solid #1f2937;
    padding: 1rem;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1f2937;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-items .nav-link {
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.mobile-menu-items .nav-link:hover {
    background-color: #1f2937;
}

.mobile-menu-items .btn {
    margin-top: 0.5rem;
    justify-self: flex-start;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .navbar-actions {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
        margin-left: auto;
    }
}

/* Search Bar Styles */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background-color: #2d3f54;
    border: none;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 8px;
    color: #ffffff;
    width: 300px;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: #a0a6b8;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: #a0a6b8;
    z-index: 1;
}

.search-btn {
    background-color: #2563eb;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #1d4ed8;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2d3f54;
    border: 1px solid #3f5470;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #3f5470;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #3f5470;
}

.suggestion-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    margin-right: 0.75rem;
}

.suggestion-content h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.suggestion-content p {
    font-size: 0.8rem;
    color: #a0a6b8;
    margin: 0;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-outline {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    font-weight: bold;
}

.btn-outline:hover {
    background-color: #2563eb;
    color: white;
}

/* Header Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title .title-white {
    color: #ffffff;
}

.hero-title .title-blue {
    color: #2563eb;
}

/* Hero Search Bar */
.hero-search {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.hero-search-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(37, 99, 235, 0.3);
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-search-input:focus {
    outline: none;
    border-color: #2563eb;
    background-color: rgba(255, 255, 255, 0.15);
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 1.2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #a0a6b8;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.hero-cta {
    margin-top: 2rem;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #1f2937;
    border: 2px solid #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 1.5rem;
    color: #2563eb;
}

.step-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-item p {
    color: #a0a6b8;
    font-size: 0.9rem;
}

/* Prompt Cards Section */
.prompts-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid #374151;
    color: #9ca3af;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.filter-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.prompt-card {
    background-color: #091f39;
    border-radius: 12px;
    overflow: hidden;
    border: 0px solid #3f5470;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prompt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.prompt-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.prompt-content {
    padding: 1.5rem;
}

.prompt-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.prompt-description {
    color: #a0a6b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prompt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.prompt-author {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.by-text {
    color: #9ca3af;
    font-size: 0.8rem;
}

.username-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.username-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.tag {
    background-color: #f39c12;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag.macro { background-color: #e74c3c; }
.tag.futuristic { background-color: #3498db; }
.tag.cinematic { background-color: #9b59b6; }
.tag.steampunk { background-color: #e67e22; }
.tag.vintage { background-color: #f1c40f; }
.tag.watercolor { background-color: #1abc9c; }
.tag.moody { background-color: #2c3e50; }

.prompt-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.prompt-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.star {
    color: #ffd700;
    font-size: 1rem;
}

.star.empty {
    color: #3f5470;
}

/* Rating input specific styling */
.rating-input .star {
    color: #3f5470;
    cursor: pointer;
}

.rating-input .star.rated {
    color: #ffd700;
}

.rating-count {
    color: #a0a6b8;
    font-size: 0.8rem;
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #a0a6b8;
    font-size: 0.8rem;
}

.comment-count i {
    font-size: 0.9rem;
}

.social-share {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    border-color: #2563eb;
    color: #2563eb;
}

.share-btn.facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-btn.instagram:hover { border-color: #e4405f; color: #e4405f; }
.share-btn.whatsapp:hover { border-color: #25d366; color: #25d366; }
.share-btn.twitter:hover { border-color: #1da1f2; color: #1da1f2; }

.copy-btn {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #1d4ed8;
}

.edit-btn {
    background-color: #f59e0b;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-left: 0.5rem;
}

.edit-btn:hover {
    background-color: #d97706;
}

.delete-btn {
    background-color: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-left: 0.5rem;
}

.delete-btn:hover {
    background-color: #dc2626;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2d3f54;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0a6b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: #3f5470;
    border: 1px solid #4a6085;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
}

.form-input::placeholder {
    color: #a0a6b8;
}

.form-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.form-textarea {
    height: 100px;
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    background-color: #3f5470;
    border: 1px solid #4a6085;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
  gap: 1rem;
    }

    .navbar-actions {
        width: 100%;
        justify-content: center;
    }

    .search-input {
        width: 250px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .prompts-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #4285f4;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Comment Styles */
.comment-form-section {
    border-top: 1px solid #3f5470;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.comments-section {
    margin-top: 1.5rem;
}

.comment-item {
    background-color: #1f2937;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #2563eb;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-username {
    font-weight: 600;
    color: #2563eb;
    font-size: 0.9rem;
}

.comment-date {
    color: #9ca3af;
    font-size: 0.8rem;
}

.comment-text {
    color: #e5e7eb;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.comment-form-section h4,
.comments-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer Styles */
.footer {
    background-color: #0f172a;
    border-top: 1px solid #1f2937;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2563eb;
}

.footer-separator {
    color: #6b7280;
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
