/* Professional Ebook Store Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Oswald:wght@700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
    min-height: 100vh;
}

header {
    background-color: #000000;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-bottom: 2px solid #ff69b4;
}

header h1 {
    margin: 0;
    font-size: 3.5em;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: #ff69b4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 300;
}

/* Categories Section */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
}

.welcome {
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 2em;
    color: #ff69b4;
    font-weight: 300;
}

.category-btn {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ff69b4;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover {
    background-color: #ff69b4;
    color: #ffffff;
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: #ff69b4;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.3);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid #ff69b4;
}

.item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.thumbnail {
    width: 100%;
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1em;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.favorite {
    text-align: center;
    margin: 10px 0 0 0;
    font-size: 0.9em;
    color: #ffffff;
    font-weight: 500;
    background-color: #ff69b4;
    padding: 5px;
    border-radius: 4px;
}

.info {
    padding: 20px;
    background-color: #f0f0f0;
}

.title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #000000;
    font-weight: 500;
}

.meta {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
}

.button {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 6px;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
}

.button:hover {
    background: #333333;
    transform: scale(1.05);
}

footer {
    background-color: #000000;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.3);
    border-top: 2px solid #ff69b4;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 1.2em;
    color: #ff69b4;
    font-weight: 500;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        padding: 20px;
    }
    header h1 {
        font-size: 2em;
    }
    .thumbnail {
        height: 150px;
    }
}

/* Sell Page Styles */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #333333;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid #ff69b4;
}

.book-cover {
    width: 250px;
    height: 350px;
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.2em;
}

.book-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-align: center;
    color: #000000;
    font-weight: 700;
}

.book-author {
    font-size: 1.3em;
    color: #666666;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
}

.book-price {
    font-size: 2em;
    font-weight: bold;
    color: #ff69b4;
    text-align: center;
    margin-bottom: 30px;
}

.book-description {
    margin-bottom: 30px;
    line-height: 1.7;
    color: #333333;
    font-size: 1.1em;
}

.purchase-btn {
    background: linear-gradient(45deg, #ff69b4, #ffb6c1);
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    font-weight: 500;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background: linear-gradient(45deg, #ffb6c1, #ff69b4);
    transform: scale(1.05);
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.back-link a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
}

.back-link a:hover {
    text-decoration: underline;
    color: #ffb6c1;
}

/* Payment Section Styles */
.payment-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.payment-section h3 {
    margin-top: 0;
    color: #000000;
    font-size: 1.4em;
}

.payment-section select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.payment-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #ff69b4;
}

.payment-form h4 {
    margin-top: 0;
    color: #ff69b4;
    font-size: 1.2em;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.paypal-btn {
    background: linear-gradient(45deg, #0070ba, #003087);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
}

.paypal-btn:hover {
    background: linear-gradient(45deg, #003087, #0070ba);
}

.bank-details {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.bank-details p {
    margin: 5px 0;
    color: #333333;
}

/* Progress Bar Styles */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--progress-width, 0%);
    height: 2px;
    background: #ff69b4;
    z-index: 2;
    transition: width 0.5s ease;
}

.progress-step {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666666;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #ff69b4;
    border-color: #ff69b4;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.progress-step.completed {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #ffffff;
    animation: completedPulse 2s ease-in-out infinite;
}

#step1 {
    background: #ff69b4 !important;
    border-color: #ff69b4 !important;
    color: #ffffff !important;
}

/* Success Message */
.success-message {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 105, 180, 0.1);
    border: 2px solid #ff69b4;
    border-radius: 10px;
    color: #ffffff;
}

.success-message h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-family: 'Oswald', sans-serif;
}

.success-message p {
    margin: 10px 0;
    font-size: 1.1em;
}

.success-message a {
    color: #ff69b4;
    text-decoration: none;
}

.success-message a:hover {
    text-decoration: underline;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes completedPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 5px rgba(76, 175, 80, 0); }
}