@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #2d3436;
    position: relative;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.search-container {
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.site-title {
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
    color: #2d3436;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.site-title i {
    color: #6c5ce7;
    font-size: 2rem;
}

.search-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.form-control {
    border: 2px solid #e9ecef;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3436;
    transition: all 0.3s ease;
    background: white;
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-control:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.input-group {
    gap: 10px;
}

.input-group-text {
    color: #6c5ce7;
}

.btn-primary {
    background: #6c5ce7;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: #5f4dd0;
    transform: translateY(-2px);
}

.results-container {
    margin-top: 30px;
    padding: 20px 0;
}

.card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 25px;
}

.card-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: #6c5ce7;
}

.card-text {
    color: #636e72;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
}

.stats {
    font-size: 0.9rem;
    color: #adb5bd;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stats i {
    color: #6c5ce7;
    margin-right: 5px;
}

.alert {
    background: white;
    border: none;
    color: #2d3436;
    border-radius: 12px;
    padding: 20px;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.alert i {
    color: #6c5ce7;
}

/* Rastgele Rüya Tabirleri Bölümü */
.random-dreams-container {
    margin-top: 50px;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #6c5ce7;
}

.mini-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.mini-card-link:hover {
    text-decoration: none;
}

.mini-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.mini-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #6c5ce7;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.mini-card:hover::after {
    transform: scaleX(1);
}

.mini-card:active {
    transform: scale(0.98);
}

.mini-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    min-height: 3em;
}

.mini-card-text {
    font-size: 0.9rem;
    color: #636e72;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
}

.mini-stats {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mini-stats i {
    color: #6c5ce7;
    margin-right: 5px;
}

/* Modal Stilleri */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 20px 25px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title i {
    color: #6c5ce7;
}

.modal-body {
    padding: 25px;
}

.dream-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #636e72;
}

.dream-stats {
    font-size: 0.9rem;
    color: #adb5bd;
}

.dream-stats i {
    color: #6c5ce7;
}

.btn-close {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.spinner-border {
    color: #6c5ce7 !important;
    width: 3rem;
    height: 3rem;
}

#loadingSpinner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .search-container {
        margin-top: 30px;
        padding: 20px;
    }
    .site-title {
        font-size: 2rem;
    }
    .search-box {
        padding: 20px;
    }
    .card-body {
        padding: 20px;
    }
    .random-dreams-container {
        margin-top: 30px;
        padding: 20px 0;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .modal-dialog {
        margin: 1rem;
    }
}

/* Detay Sayfası Stilleri */
.dream-detail-container {
    margin-top: 50px;
    margin-bottom: 50px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #5f4dd0;
    transform: translateX(-5px);
}

.dream-detail-container .card-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.dream-detail-container .dream-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
    white-space: pre-line;
}

/* Header Stilleri */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: #6c5ce7;
    font-size: 1.8rem;
}

.nav-link {
    color: #2d3436;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #6c5ce7;
}

.main-container {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
}

/* Footer Stilleri */
.site-footer {
    background: #f8f9fa;
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid #e9ecef;
}

.footer-title {
    color: #2d3436;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-description {
    color: #636e72;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: #636e72;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(108, 92, 231, 0.05);
}

.footer-links a:hover {
    color: #6c5ce7;
    background: rgba(108, 92, 231, 0.1);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #636e72;
    font-size: 0.95rem;
}

.footer-contact i {
    color: #6c5ce7;
    font-size: 1.1rem;
}

.footer-contact a {
    color: #636e72;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover {
    color: #6c5ce7;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c5ce7;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.social-links a:hover {
    background: #6c5ce7;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.copyright {
    color: #636e72;
    font-size: 0.9rem;
    margin: 0;
}

.copyright a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 500;
}

.copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .site-footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }
    
    .footer-title {
        margin-top: 30px;
    }
    
    .footer-links {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* Sosyal medya butonları */
.share-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

.share-buttons .btn {
    width: auto;
    height: auto;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #222;
    color: #ffffff !important;
    border: 1px solid #222;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.share-buttons .btn:hover {
    background-color: #444;
    border-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    opacity: 1 !important;
    -webkit-opacity: 1 !important;
}

.share-buttons .btn i {
    font-size: 1rem;
    margin-right: 6px;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
} 