/* MAIN SECTION */

main{
    margin: 0 10% 0 10%;
}

#searchDiv{
    display: block;
}

#searchDiv form {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    margin-top: 8vh;
    width: 100%;
    padding: 5px 16px;
    box-sizing: border-box;
}

#searchDiv form input {
    border: 2px solid slategray;
    border-radius: 20px;
    width: 90%;
    font-size: 18px;
    padding: 10px 15px;
    color: #423651;
    box-sizing: border-box;
}
#searchDiv form input:focus{
    outline: none;
}
#searchDiv form button{
    border: none;
    padding: 0;
    background: none;
}
#searchDiv form button i{
    border: 4px solid #423651;
    border-radius: 50%;
    padding: 5px;
    font-size: 20px;
}

#searchResults {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

#search-card {
    display: flex;
    width: 80%;
    max-width: 800px;
    background-color: #231e2e;
    border: 2px solid slategray;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#search-card:hover {
    transform: translateY(-3px);
}

#search-card img {
    width: 180px;
    height: 100%;
    object-fit: contain;
    border-right: 2px solid slategray;
}

#search-card div {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#search-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

#search-card p {
    margin-top: 0.5rem;
    color: #ccc;
    font-size: 0.95rem;
}


/* KATEGORİLER */
#categories {
    position: relative;
    margin-top: 5vh;
    padding: 20px;
}

.category {
    background: #423651;
    margin-bottom: 40px;
    border-radius: 10px;
    border: 2px solid slategray;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
}

.category h2 {
    font-size: 2vw;
    margin-bottom: 15px;
}

.category h2 i{
    font-size: 1.5vw;
    margin-right: 1vw;
}

.slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider .post-card {
    border-radius: 10px;
    border: 2px solid slategray;
    background: #231e2e;
    overflow: hidden;
    margin-bottom: 8vh;
    margin-top: 2vh;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 280px;
}

.slider .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider .post-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.slider .post-card-content {
    padding: 8px;
}

.slider .post-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.slider .post-card-desc {
    font-size: 0.9rem;
    color: slategray;
    margin-bottom: 8px;
}

.slider .date-and-time {
    display: flex;
    color: slategray;
    align-items: center;
    font-size: 0.9rem;
    gap: 10px;
}

.slider i {
    color: slategray;
    padding: 0;
    font-size: 15px;
    margin-right: 5px;
}

.btn{
    border: 2px solid slategray;
    font-size: 15px;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    width: 20vh;
    text-decoration: none;
    align-items: center;
    position: absolute;
    right: 3vh;
    bottom: 2vh;
}

.btn i{
    position: relative;
    margin-right: 10px;
    font-size: 15px;
    padding: 0;
}

.btn:hover{
    background: #231e2e !important;
}

/********************/

/* RESPONSIVENESS SETTINGS */
@media (max-width: 1160px){
    main{
        margin: 0 2% 0 2%;
    }
    #welcome-text {
        font-size: 25px;
        margin: 6% 8% 0 8%;
    }
    .category h2 {
        font-size: 5vw;
    }
    .category h2 i{
        font-size: 4vw;
        margin-right: 1vw;
    }
    .search-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-card img {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 2px solid #444;
    }

    .search-card div {
        width: 100%;
    }
}

@media (max-width: 710px){
    .slider{
        display: block;
        margin: 0;
    }
}

@media (max-width: 600px) {
    #search-card {
        width: 70%;
        height: 15vw;
    }
    #search-card h3{
        font-size: 1rem;
    }
    #search-card p{
        display: none;
    }
    #search-card img{
        object-fit: cover;
        width: 20vw;
    }
    .slider .post-card {
        height: auto;
    }

    .slider .post-card img {
        height: 180px;
    }

    .slider .post-card-title {
        font-size: 1rem;
    }

    .slider .post-card-desc {
        font-size: 0.85rem;
    }

    .slider .date-and-time {
        font-size: 0.8rem;
    }
}
/********************/
