/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5B4E8C;
    --secondary-color: #8B7EB8;
    --accent-color: #FFB84D;
    --dark-bg: #2C2544;
    --light-bg: #F8F6FF;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0DCF0;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 15px rgba(91,78,140,0.2);
    --radius: 10px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header Styles */
.site-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-icon {
    font-size: 1.8rem;
}

.main-nav {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.header-search {
    width: 300px;
}

.search-form {
    display: flex;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.search-button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--light-bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 5px;
}

.breadcrumbs-list a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.breadcrumbs-list .separator {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumbs-list .current {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-main {
    display: flex;
    gap: 10px;
}

.search-input-main {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius);
}

.search-button-main {
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Section Styles */
.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

/* Alphabet Grid */
.alphabet-section {
    background: white;
    padding: 60px 0;
    margin-bottom: 50px;
    border-radius: var(--radius);
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.alphabet-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alphabet-letter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.alphabet-letter span {
    position: relative;
    z-index: 1;
}

.alphabet-letter:hover::before {
    width: 100%;
    height: 100%;
}

.alphabet-letter:hover,
.alphabet-letter.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.alphabet-letter:hover span,
.alphabet-letter.active span {
    color: white;
}

/* Dreams Grid */
.dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px 20px;
    margin-top: 30px;
}

.dream-card {
    position: relative;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.dream-card a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--text-dark);
}

.dream-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.dream-card h2,
.dream-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.dream-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Top Badge */
.top-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Dream Meta */
.dream-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.views {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Page Header */
.page-header,
.page-header-section {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-header h1,
.page-header-section h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p,
.page-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
}

/* Article Content */
.article-content {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.article-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-text h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.article-text h3 {
    color: var(--secondary-color);
    margin: 25px 0 12px;
    font-size: 1.5rem;
}

.article-text p {
    margin-bottom: 20px;
}

.article-text ul,
.article-text ol {
    margin: 20px 0 20px 30px;
}

.article-text li {
    margin-bottom: 10px;
}

/* Sidebar */
.sidebar,
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.widget-text {
    color: var(--text-light);
    line-height: 1.7;
}

.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-search-input {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
}

.sidebar-search-button {
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.similar-dreams-list {
    list-style: none;
}

.similar-dreams-list li {
    margin-bottom: 10px;
}

.similar-dreams-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.similar-dreams-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Share Section */
.share-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.share-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.share-button:hover {
    transform: translateY(-2px);
}

.share-vk {
    background: #4680C2;
}

.share-telegram {
    background: #0088cc;
}

.share-whatsapp {
    background: #25D366;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
    margin: 40px auto;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.empty-title {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.empty-message {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background: #FFA633;
    transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
    background: var(--dark-bg);
    color: white;
    padding: 50px 0 30px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    min-width: 250px;
}

.footer-title {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-description {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
}

/* Footer Alphabet */
.footer-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.alphabet-link {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.alphabet-link:hover {
    background: var(--accent-color);
    color: var(--dark-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.alphabet-link:last-child {
    font-weight: bold;
    letter-spacing: 2px;
}

/* Footer Email */
.footer-email {
    color: rgba(255,255,255,0.8);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 5px 0;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.info-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

.content-section {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.content-main {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.content-block p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.step-card {
    text-align: center;
    padding: 25px;
    background: var(--light-bg);
    border-radius: var(--radius);
    transition: transform 0.3s ease;
}

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

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.benefits-list {
    list-style: none;
    margin: 20px 0;
}

.benefits-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    line-height: 1.7;
}

.benefits-list li strong {
    color: var(--primary-color);
}

.dream-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dream-type-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    transition: all 0.3s ease;
}

.dream-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.dream-type-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dream-type-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    border-radius: var(--radius);
    margin: 30px 0;
}

.info-box p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    padding: 10px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.stats-list li strong {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.tip-text {
    background: var(--light-bg);
    padding: 15px;
    border-radius: var(--radius);
    color: var(--text-dark);
    line-height: 1.7;
}

/* Search Page Enhanced */
.search-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.search-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.search-hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.search-icon-large {
    font-size: 3rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.search-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

.search-main {
    padding: 60px 0;
    background: var(--light-bg);
    min-height: 400px;
}

.search-box-wrapper {
    max-width: 800px;
    margin: -40px auto 50px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
}

.search-form-enhanced {
    width: 100%;
}

.search-field-group {
    position: relative;
}

.search-label {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.search-input-wrapper {
    display: flex;
    gap: 0;
    position: relative;
}

.search-input-enhanced {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.1rem;
    border: 3px solid var(--border-color);
    border-radius: 15px 0 0 15px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-enhanced:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 78, 140, 0.1);
}

.search-btn-enhanced {
    padding: 18px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 15px 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.search-btn-enhanced:hover {
    background: var(--secondary-color);
    transform: translateX(3px);
}

.search-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.quick-search-section {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.quick-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.quick-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Search Results */
.search-results {
    margin-top: 50px;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.results-header p {
    color: var(--text-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.result-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.result-card a {
    display: block;
    padding: 25px;
    text-decoration: none;
    color: var(--text-dark);
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.result-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.result-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
}

.no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-results h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.no-results-suggestions {
    max-width: 400px;
    margin: 30px auto;
    text-align: left;
}

.no-results-suggestions h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.no-results-suggestions ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-light);
}

.no-results-suggestions li {
    margin-bottom: 10px;
}

.no-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Popular Searches */
.popular-searches {
    margin-top: 50px;
    text-align: center;
}

.popular-searches h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.search-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.browse-section {
    max-width: 1000px;
    margin: 60px auto 0;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.browse-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

.browse-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.browse-icon {
    font-size: 1.5rem;
}

.browse-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.alphabet-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.letter-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.letter-mini:hover {
    background: var(--primary-color);
    color: white;
}

.browse-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.browse-link:hover {
    color: var(--secondary-color);
}

.seo-content {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    background: white;
    border-radius: 15px;
}

.seo-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.seo-content p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Updated Results Styles */
.results-info {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.results-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.results-count {
    background: var(--accent-color);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.results-list {
    display: grid;
    gap: 20px;
}

.result-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.result-link {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
}

.result-content {
    padding: 25px;
}

.result-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.result-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-views {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.result-action {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.result-item:hover .result-action {
    gap: 10px;
}

.search-again {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 15px;
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Popular Section */
.popular-section {
    background: white;
    padding: 60px 0;
    margin-bottom: 50px;
}

/* Recent Section */
.recent-section {
    background: var(--light-bg);
    padding: 60px 0;
    margin-bottom: 50px;
}

/* Info Section */
.info-section {
    background: white;
    padding: 60px 0;
}

/* Dreams Container */
.dreams-container {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.dreams-count {
    color: var(--text-light);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.dreams-count p {
    margin: 0;
}

.dreams-count strong {
    color: var(--primary-color);
}

/* Letter Page Specific */
.alphabet-nav-section {
    background: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.alphabet-nav {
    text-align: center;
}

.alphabet-nav h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.dreams-list-section {
    padding: 0 0 60px 0;
}

.stat-text {
    text-align: left;
}

.stat-text strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-text a {
    color: var(--secondary-color);
    text-decoration: none;
}

.stat-text a:hover {
    color: var(--primary-color);
}

/* Error Page Styles */
.error-page {
    padding: 60px 0;
    min-height: 60vh;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-title {
    font-size: 120px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 2rem;
    color: var(--text-dark);
    margin: 20px 0;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-search {
    margin: 40px 0;
}

.error-search p {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.search-form-inline {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 15px auto;
}

.search-input-inline {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-button-inline {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    font-size: 1rem;
}

.search-button-inline:hover {
    background: var(--secondary-color);
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.error-suggestions {
    margin-top: 60px;
}

.error-suggestions h3 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.suggestion-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.suggestion-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
}

.suggestion-views {
    color: var(--text-light);
    font-size: 0.9rem;
}

.error-alphabet {
    margin-top: 40px;
    text-align: center;
}

.error-alphabet h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Stats Box */
.stats-box {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    margin-top: 5px;
    font-size: 0.95rem;
}

/* Dreams List */
.dreams-list {
    display: grid;
    gap: 10px;
}

.dream-item {
    background: white;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.dream-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
}

.dream-item:hover {
    background: var(--light-bg);
}

.dream-name {
    font-weight: 500;
    color: var(--primary-color);
}

.dream-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 10px;
}

.dream-status.ready {
    background: #28a745;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.dream-status.pending {
    background: #ffc107;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.dream-views {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .header-search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .dreams-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .dream-types {
        grid-template-columns: 1fr;
    }
    
    .alphabet-grid {
        grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
        gap: 10px;
    }
    
    .alphabet-letter {
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-alphabet {
        max-width: 300px;
        margin: 10px auto 0;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-form-main,
    .search-input-group {
        flex-direction: column;
    }
    
    .search-button-main {
        width: 100%;
        justify-content: center;
    }
    
    .popular-tags {
        justify-content: flex-start;
    }
    
    .search-tag {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
    
    .error-title {
        font-size: 80px;
    }
    
    .error-subtitle {
        font-size: 1.5rem;
    }
    
    .content-main {
        padding: 20px;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    .stats-box {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}
/* Legal Pages Styles (Privacy & Terms) */

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.legal-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.legal-update {
    font-size: 1rem;
    opacity: 0.9;
}

/* Content Layout */
.legal-content {
    padding: 60px 0;
    background: var(--light-bg);
}

.legal-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar TOC */
.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.toc-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.toc-widget h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 12px;
}

.toc-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.toc-list a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    padding-left: 15px;
}

.toc-list a::before {
    content: '▸';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toc-list a:hover::before {
    opacity: 1;
}

/* Main Content */
.legal-main {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.legal-intro {
    padding: 25px;
    background: var(--light-bg);
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.legal-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 0;
}

.legal-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.legal-section h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.legal-section ul {
    margin: 20px 0;
    padding-left: 25px;
}

.legal-section li {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.legal-section ul li::marker {
    color: var(--accent-color);
}

.legal-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Box */
.contact-box {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.contact-box p {
    margin: 10px 0;
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Warning Box */
.warning-box {
    background: #fff9e6;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.warning-box p {
    margin: 0;
    color: var(--text-dark);
}

.warning-box strong {
    color: #ff6b00;
}

/* Legal Footer */
.legal-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    color: var(--text-light);
    margin: 10px 0;
}

.legal-footer .copyright {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 20px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Active Section Highlight */
.toc-list a.active {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .legal-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .legal-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .toc-widget {
        max-width: 100%;
    }
    
    .toc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .legal-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-main {
        padding: 25px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        padding: 20px;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .legal-sidebar,
    .site-header,
    .site-footer {
        display: none;
    }
    
    .legal-wrapper {
        grid-template-columns: 1fr;
    }
    
    .legal-main {
        box-shadow: none;
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column !important;
        gap: 7px !important; 
    }
    
    .search-input-enhanced,
    .search-btn-enhanced {
        width: 100% !important;
        border-radius: 10px !important;
    }
    
    .search-box-wrapper {
        margin: -30px 10px 30px !important;
        padding: 25px 15px !important;
}