﻿/* Hero Section */
.hero {
    background-image: url('../images/Pressnix_homePage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.overlay h1 {
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

/* Buttons */
.btn-sell {
    background-color: #f39c12;
    color: #000;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-sell:hover {
    background-color: transparent;
    color: #fff !important;
    border-color: #f39c12;
}

/* Card styles */
.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
}

.buy-btn {
    background-color: #f97316;
    color: #fff;
    border: none;
    padding: 7px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-btn:hover {
    background-color: #d96614;
    color: #fff !important;
}

.view-btn {
    background-color: #fbbf24;
    color: #fff;
    border: none;
    padding: 7px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.view-btn:hover {
    background-color: #e5ad21;
    color: #fff !important;
}

.submit-btn {
    background-color: #f59f0b;
    color: #fff;
    border: none;
    padding: 7px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #c07d0a;
    color: #fff !important;
}

/* Modal styles */
.modal-backdrop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1051;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.modal-dialog.modal-lg {
    max-width: 90vw !important;
    width: 90vw !important;
}

.modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

.sell-modal-custom-size {
    max-width: 800px;
}

@media (max-width: 900px) {
    .sell-modal-custom-size {
        max-width: 95vw;
    }
}

.modal-custom-size {
    max-width: 400px;
}

/* Main image preview */
.main-image-preview {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
}

.supporting-image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.supporting-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid #ccc;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}

/* Image Viewer Modal */
.image-viewer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-viewer-box {
    width: 90vw;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-viewer-image {
    width: auto;
    height: 700px;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.image-viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.image-viewer-controls {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.image-viewer-controls button {
    background-color: #f39c12;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-viewer-controls button:hover {
    background-color: #e67e22;
    color: #fff !important;
}

/* Image viewer modal styles */
.image-viewer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1060;
}

.image-viewer-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
}

.image-viewer-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-viewer-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.image-viewer-controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.supporting-image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.supporting-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
}

.main-image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    cursor: pointer;
}





/* Brand Section Styles */
.brand-scroller {
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    width: 100%;
}

.brand-scroll-container {
    display: flex;
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll 40s linear infinite;
}

.brand-scroller:hover .brand-scroll-container,
.brand-scroller:active .brand-scroll-container {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex: 0 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-height: 180px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .brand-item {
        flex: 0 0 auto;
        padding: 0 1.5rem;
    }
    
    .brand-item img {
        max-height: 150px;
    }
    
    .brand-scroll-container {
        animation: scroll 35s linear infinite;
    }
}

@media (max-width: 768px) {
    .brand-item {
        flex: 0 0 auto;
        padding: 0 1rem;
    }
    
    .brand-item img {
        max-height: 100px;
    }
    
    .brand-scroll-container {
        animation: scroll 25s linear infinite;
    }
}

@media (max-width: 576px) {
    .brand-item {
        padding: 0 0.75rem;
    }
    
    .brand-item img {
        max-height: 80px;
    }
}

/* Google map footer section */
.map-section {
    position: relative;
    width: 100%;
}

.map-section iframe {
    width: 100%;
    border: none;
}