/* Share Panel Styles with Brand Colors */
.share-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(133, 118, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.share-panel-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(133, 118, 255, 0.3);
    border: 1px solid rgba(133, 118, 255, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(133, 118, 255, 0.2);
}

.share-panel-header h5 {
    margin: 0;
    flex: 1;
    color: #8576FF;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #8576FF;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 1px solid rgba(133, 118, 255, 0.3);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: linear-gradient(135deg, #8576FF, #6a5ef5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(133, 118, 255, 0.3);
    border-color: transparent;
}

.share-option:hover i,
.share-option:hover span {
    color: white;
}

.share-option i {
    font-size: 22px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.share-option span {
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.share-option[data-platform="facebook"] i { color: #1877F2; }
.share-option[data-platform="twitter"] i { color: #1DA1F2; }
.share-option[data-platform="linkedin"] i { color: #0A66C2; }
.share-option[data-platform="whatsapp"] i { color: #25D366; }
.share-option[data-platform="email"] i { color: #EA4335; }
.share-option[data-platform="copy"] i { color: #8576FF; }

.share-url-container {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

#share-url {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(133, 118, 255, 0.3);
    border-radius: 10px;
    background: #f8f9ff;
    font-size: 14px;
    color: #333;
}

#copy-url-btn {
    background: linear-gradient(135deg, #8576FF, #6a5ef5);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#copy-url-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(133, 118, 255, 0.4);
}

/* Success notification with brand colors */
.share-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #8576FF, #6a5ef5);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(133, 118, 255, 0.4);
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Updated share button in the main container */
#share-button {
    background: white;
    color: #8576FF;
    border: 2px solid #8576FF;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#share-button:hover {
    background: linear-gradient(135deg, #8576FF, #6a5ef5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(133, 118, 255, 0.3);
}


.strong-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#wishlist-button.btn-success {
    background-color: #7A1CAC !important; /* Custom background color */
    border-color: #7A1CAC !important; /* Custom border color */
}

.info-box {
    background-color: #fff8e1; /* Light yellow background */
    border: 1.5px solid #ffc107; /* Yellow left border */
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px; /* Optional: to slightly round the corners */
    color: #555; /* Darker text color for readability */
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 -2px 4px rgba(0, 0, 0, 0.2),
    2px 0px 4px rgba(0, 0, 0, 0.2),-2px 0 4px rgba(0, 0, 0, 0.2);
}

.info-box strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.info-box p {
    margin: 0;
    line-height: 1.5;
}


.text-with-stroke{
    text-decoration: line-through;
    color: grey;
    opacity: 50%;
}

/* Ensure buttons are of equal length */
.button-container button {
    display: block;
    width: 100%; /* Ensure buttons take full width of the container */
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px; /* Add some spacing between buttons */
}

.button-container button i {
    margin-right: 10px;
}

/* Button styles */
.button-container .btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}

.dark-mode .button-container .btn-dark {
    background-color: #fff !important;
    color: #3C3D37 !important;
}

.button-container .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Ensure image and buttons don't overlap */
.details-container .row {
    display: flex;
    flex-wrap: wrap;
}

.book-card img:not(.front img) {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
}


/* Container styles */
.details-container {
    margin: 5%;
}


.no-decor {
    text-decoration: none;
    color: inherit;
}

.text-muted {
    margin: 0;
}

.total-ratings {
    line-height: 0;
    margin: 0 0 0 5px;
}

@media (max-width: 1050px) {
    .details-container .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .details-container .col-md-4 {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .details-container .col-md-4,
    .details-container .col-md-8 {
        width: 100%;
        text-align: center;
    }

    .details-container .col-md-8 {
        margin-top: 20px;
    }

    .details-container .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .button-container button, .button-container a {
        width: 100%;
        margin: 5px auto; /* Center align buttons with margin */
    }
    .strong-details {
        width: 100%;
    }
}