:root {
    --primary-color: #009aa2;    /* Oxford mavisi */
    --secondary-color: #E31837;  /* Oxford kırmızısı */
    --text-dark: #1C1C1C;
    --text-light: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #00247D;
}

/* Navbar Styles */
.navbar-custom {
    background-color: var(--primary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: var(--text-light) !important;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.navbar-custom .nav-link:hover {
    opacity: 1;
}

/* Search Container */
.search-container {
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 100;
    padding-bottom: 30px;
}

.search-box {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.search-input {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    border: none;
    background-color: rgba(255,255,255,0.9);
}

.search-input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.search-input::placeholder {
    color: #666;
}

/* Search Results Styles */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
}

.search-results .list-group {
    margin-bottom: 0;
    border-radius: 4px;
}

.search-results .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.search-results .list-group-item:first-child {
    border-top: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.search-results .list-group-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.search-results .list-group-item-action:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Search Results Tabs */
.search-results .nav-tabs {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.search-results .nav-link {
    border: none;
    padding: 0.5rem;
    color: var(--primary-color);
    background: none;
    cursor: pointer;
}

.search-results .nav-link:hover {
    color: var(--secondary-color);
}

.search-results .nav-link.active {
    color: var(--secondary-color);
    font-weight: 500;
    border-bottom: 2px solid var(--secondary-color);
}

.search-results .list-group-item small {
    color: #666;
    display: block;
    margin-top: 0.25rem;
}

.search-results .list-group-item strong {
    color: var(--primary-color);
}

/* Highlight style for search results */
.search-results .highlight {
    background-color: #fff3cd;
    border-radius: 2px;
    font-weight: 500;
}

/* Random Words Cards */
.card {
    border: 1px solid #e5e5e5;
    box-shadow: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.card:hover {
    border-color: #207ab7;
    transform: none;
    box-shadow: 0 2px 8px rgba(32, 122, 183, 0.1);
}

.card-body {
    padding: 1.5rem;
  margin: 10px;
    padding: 10px;
    border-radius: 4px;
    background-color: #ecf1f1;
    -webkit-box-shadow: 0 10px 60px 0 rgba(29, 29, 31, .09);
    -moz-box-shadow: 0 10px 60px 0 rgba(29,29,31,.09);
    box-shadow: 0 10px 60px 0 rgba(29, 29, 31, .09);
}

.card-title {
    color: #207ab7;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-family: "Georgia", serif;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.card-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-family: "Georgia", serif;
}

.card .btn-primary {
    background-color: #207ab7;
    border: none;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .btn-primary:hover {
    background-color: #1a6598;
    transform: none;
    box-shadow: none;
}

/* Alphabet Container */
.alphabet-container .btn {
    font-size: 0.9rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.alphabet-container .btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Section Title */
.section-title {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: "Georgia", serif;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

/* Popular Searches */
.popular-word-card {
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.popular-word-card:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2rem 0;
    flex-shrink: 0;
}

/* Word Styles */
.word-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.word-meaning {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.word-meaning strong {
    color: var(--secondary-color);
}

/* Word Card Styles */
.word-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
}

.word-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.word-card .word-title {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.word-card:hover .word-title {
    color: var(--secondary-color);
}

/* Body ve ana container için stil */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    background-color:#fbfcfd;
    padding-top:20px;
    flex: 1 0 auto;
}

/* Word List Styles */
.word-list {
    line-height: 1.5;
}

.word-list .row {
    margin-bottom: 1rem;
}

.word-link {
    color: var(--primary-color);
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 4px;
    text-decoration: underline !important;
    font-family: "Georgia", serif;
    transition: all 0.2s ease;
    text-underline-offset: 3px; /* Altı çizginin kelimeden uzaklığı */
    text-decoration-thickness: 1px; /* Altı çizginin kalınlığı */
}

.word-link:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    text-decoration: underline !important;
}

/* References Page Styles */
.references-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.references-content {
    font-family: "Georgia", serif;
    line-height: 1.6;
}

.reference-list {
    list-style: none;
    padding-left: 0;
}

.reference-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.reference-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.author {
    color: var(--primary-color);
    font-weight: 600;
}

.title {
    font-style: italic;
}

.journal {
    color: #2c3e50;
}

.reference-category .sub-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
}

/* About Page Styles */
.about-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-content {
    font-family: "Georgia", serif;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-content .lead {
    font-size: 1.2rem;
    color: #2c3e50;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.sub-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
    font-family: "Georgia", serif;
}

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

.about-content a:hover {
    text-decoration: underline;
}

/* Container Widths */
.home-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.references-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.word-list-container {
    max-width: 1000px;
    margin: 0 auto;
}

.word-detail-container {
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .home-section,
    .references-section,
    .about-section,
    .word-list-container,
    .word-detail-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Word Detail Styles */
.word-detail-container .card {
    padding: 15px;
    box-shadow: none;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.word-detail-container .card-body {
    margin: 10px;
    min-height: 100px;
    padding: 10px;
    border-radius: 4px;
    background-color: #ecf1f1;
    -webkit-box-shadow: 0 10px 60px 0 rgba(29, 29, 31, .09);
    -moz-box-shadow: 0 10px 60px 0 rgba(29,29,31,.09);
    box-shadow: 0 10px 60px 0 rgba(29, 29, 31, .09);
}

.word-detail-container .card-title {
    color: #207ab7;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-family: "Georgia", serif;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.5rem;
}

.word-detail-container .card-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-family: "Georgia", serif;
}

/* Alert Styles */
.alert-info {
    background-color: #f8f9fa;
    border-color: #e5e5e5;
    color: #333;
    font-family: "Georgia", serif;
    padding: 1rem;
    border-radius: 4px;
}

/* Suggestion Form Styles */
.suggestion-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.suggestion-section .card {
    border: 1px solid #e5e5e5;
    box-shadow: none;
}

.suggestion-section .form-label {
    color: var(--primary-color);
    font-weight: 500;
    font-family: "Georgia", serif;
}

.suggestion-section .form-control {
    border-color: #e5e5e5;
    padding: 0.75rem;
}

.suggestion-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 30, 65, 0.1);
}

.suggestion-section .form-text {
    color: #666;
    font-size: 0.875rem;
}

.suggestion-section .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 2rem;
    font-weight: 500;
}

.suggestion-section .btn-primary:hover {
    background-color: var(--secondary-color);
}

.alert {
    font-family: "Georgia", serif;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}