.like {
    width: 20px;
    height: 20px;
    background-image: url("../images/like.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: 0.1s;
}

.like_box {
    background: #ffffff00;
    color: #fffefe;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    bottom: 5px;
}

.like_count {

}

.like:hover {
    background-image: url("../images/liked.png");
}

.liked {
    width: 20px;
    height: 20px;
    background-image: url("../images/liked.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: 0.1s;

}

.view_box {
    background: #ffffff00;
    color: #fffefe;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    bottom: 5px;
}

.view_icon {
    width: 20px;
    height: 20px;
    background-image: url("../images/view_icon.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: 0.1s;
}


.view_count {

}

.list-view .result-item-footer {
    width: 20%;
    display: flex;
    align-items: center;
    gap: 20px;
    /* min-height: 100%; */
    justify-content: flex-start;
    margin-top: 15px;
}

.large-view .result-item-footer {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.large-view .list-footer {
    display: none;
}

.list-view .large-footer {
    display: none;
}

.details_box {
    background: #ffffff00;
    color: #fffefe;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    bottom: 5px;
}

.details_icon {
    width: 20px;
    height: 20px;
    background-image: url("../images/details.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    transition: 0.1s;
}

.container {

    max-width: 1400px;
    margin: 0 auto;
}

header {
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background-color: #1a1a1a;
    border: 2px solid #333;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #eb3237;
}

.search-btn {
    padding: 12px 30px;
    background-color: #eb3237;
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #c72a2e;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    color: #999;
}

.controls-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.sort-select {
    padding: 8px 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: #eb3237;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 15px;
    /* background-color: #1a1a1a; */
    /* border: 1px solid #333; */
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    background-image: url("../images/kinkeu/list-view.png");
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    width: 50px;
    height: 30px;
}

.large-view-btn {
    background-image: url("../images/kinkeu/large-view.png");
}

.view-btn:hover {
    background-color: #2a2a2a;
}

.view-btn.active {
    background-color: #eb3237;
    border-color: #eb3237;
}

.results-grid {
    display: grid;
    gap: 20px;
    transition: all 0.3s;
}

.results-grid.list-view {
    grid-template-columns: 1fr;
}

.results-grid.large-view {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.results-grid.list-view .result-img {
    width: 10%;
}

.results-grid.list-view .result-img img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    min-height: 120px;
    object-position: top;
    height: 100%;
}

.results-grid.list-view .result-content {
    width: 70%;
}

.results-grid.list-view .result-meta {
    width: 30%;
}

.result-img img {
    border-radius: 8px;
}

.result-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.result-card:hover {
    border-color: #eb3237;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(235, 50, 55, 0.2);
}

.result-header {
    margin-bottom: 12px;
}

.result-title {
    font-size: 20px;
    font-weight: 600;
    color: #eb3237;
    margin-bottom: 5px;
}

.result-url {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.result-photo-count {
    position: absolute;
    padding-left: 30px;
    color: #ffffff;
    width: max-content;
    background: linear-gradient(135deg, #eb2d27 0%, #cccccc47 100%);
    padding: 0px 10px;
    padding-left: 40px;
    text-align: center;
    border-radius: 8px;
    right: 10px;
    bottom: 10px;
}

.result-photo-count:before {
    content: "";
    background: url("../images/photo-count.png") center center no-repeat;
    background-size: contain;
    width: 25px;
    height: 25px;
    position: absolute;
    left: 5px;
    margin-right: 20px;
}

.result-video-count {
    position: absolute;
    padding-left: 30px;
    color: #ffffff;
    width: max-content;
    background: linear-gradient(135deg, #eb2d27 0%, #cccccc47 100%);
    padding: 0px 10px;
    padding-left: 40px;
    text-align: center;
    border-radius: 8px;
    right: 10px;
    bottom: 10px;
}

.result-video-count:before {
    content: "";
    background: url("../images/video-count.png") center center no-repeat;
    background-size: contain;
    width: 25px;
    height: 25px;
    position: absolute;
    left: 5px;
    margin-right: 20px;
}

.result-description {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
    min-height: 130px;
    background: #ffffff08;
    padding: 10px;
    border-left: 2px solid #eb3237;
}

.list-view .result-description {
    display: none;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-view .result-card {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-content: center;
    align-items: center;
}

.large-view .result-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 20px;
    min-height: 330px;
}

.large-view .result-img img {
    height: 250px;
    object-fit: cover;
}

.large-view .result-img img.broken {
    display: none;
}

.kinkeu_powered {
    background: url("../images/license.png") center center no-repeat;
    background-size: contain;
    width: 25px;
    height: 25px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
}

.modal-header .close {
    color: #aaa;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
    width: 10%;
}

.close:hover,
.close:focus {
    color: #e74c3c;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 30px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.05);
    transition: all 0.3s ease;
}

.modal-meta-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(110, 0, 17, 0.15);
}

.modal-meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 500;
    color: #000;
    font-size: 15px;
    text-align: right;
}

.view-details-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #eb2d27 0%, #cccccc47 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: max-content;
}

.results-grid.large-view .view-details-btn {
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgb(216 49 43 / 18%);
}

.view-details-btn:active {
    transform: translateY(0);
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 10px;
}


.result-card-wrapper {
    width: 100%;
}

@media (max-width: 768px) {
    .results-grid.large-view {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 768px) {

    .results-grid.list-view .result-img {
        width: 30%;
    }
    .results-grid.list-view .result-img img{
        width: 100%;
        max-height: 100px;
        object-fit: cover;
        min-height: 100px;
        object-position: top;
        height: 100%;
    }

    .result-title{
        font-size: 16px;
    }
}

.tmp-portfolio::after {
    content: " ";
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}
