* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #333;
    min-height: 100vh;
    padding: 2rem 0;
}

.container {
    /* background-color: red; */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    text-align: center;
}

.logo {
    width: 180px;
    height: 180px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 12px 18px rgba(4, 4, 4, 0.1));
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05);
    /* filter: drop-shadow(0 12px 18px rgba(4, 4, 4, 0.1)) */
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 600;
    position: relative;
    display: inline-block;
    /* background-color: red; */
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 2px;
}

.search-form {
    /* background-color: red; */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding-right: 120px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #2980b9, #8e44ad);
}

.search-tools {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

.search-tool {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.search-tool:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    transition: opacity 0.4s ease;
}

.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #fcfcfc;
}

.card-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.result-card:hover .card-title::after {
    width: 100%;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-text {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: flex-end;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: #9b59b6;
}

.read-more svg {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.read-more:hover svg {
    transform: translateX(3px);
}

.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.language-label {
    margin-right: 10px;
    color: #666;
}

.language-select {
    border: none;
    background: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ri-moon-line {
  display: none;
}

.theme-toggle:hover {
    background: #f5f5f5;
}

.dark-mode {
    display: none;
}

@media (max-width: 768px) {

.language-toggle {
    position: absolute;
    width: 10.5rem;
    height: 2rem;
    top: 20px;
    right: 8px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}


.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    }
}

/* Loading effects */
.loading-bar {
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.4s ease;
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Microinteractions */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.8s linear;
}

@keyframes ripple {
    to {
    transform: scale(4);
    opacity: 0;
    }
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}