/**
 * Frontend CSS für das WP Whitepaper Exchange Plugin
 */

/* Allgemeine Container-Styles */
.wpwe-whitepaper-container {
    margin: 40px 0;
    background-color: #fff;
}

/* Single Whitepaper Layout - Überarbeitetes vertikales Layout */
.wpwe-whitepaper-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Bild oben */
.wpwe-whitepaper-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.wpwe-whitepaper-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Content in der Mitte */
.wpwe-whitepaper-content {
    margin-bottom: 40px;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
}

.wpwe-whitepaper-content h1,
.wpwe-whitepaper-content h2,
.wpwe-whitepaper-content h3,
.wpwe-whitepaper-content h4,
.wpwe-whitepaper-content h5,
.wpwe-whitepaper-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.wpwe-whitepaper-content p {
    margin-bottom: 20px;
}

.wpwe-whitepaper-content ul,
.wpwe-whitepaper-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.wpwe-whitepaper-content li {
    margin-bottom: 8px;
}

/* Formular-Sektion unten */
.wpwe-whitepaper-form-section {
    margin-top: 20px;
}

.wpwe-whitepaper-form-container {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #eaeaea;
}

/* Rest des bestehenden CSS beibehalten */

/* Preview im Shortcode */
.wpwe-whitepaper-preview {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.wpwe-whitepaper-image {
    margin-bottom: 20px;
}

.wpwe-whitepaper-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

/* Sidebar mit Formular */
.wpwe-whitepaper-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
}

.wpwe-whitepaper-form-wrapper {
    margin-top: 20px;
}

.wpwe-whitepaper-form-wrapper h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.wpwe-form-description {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

/* Formular-Styles */
.wpwe-whitepaper-form {
    margin-top: 20px;
}

.wpwe-whitepaper-form .form-group,
.wpwe-whitepaper-form .mb-3 {
    margin-bottom: 15px;
}

.wpwe-whitepaper-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.wpwe-whitepaper-form input[type="text"],
.wpwe-whitepaper-form input[type="email"],
.wpwe-whitepaper-form select,
.wpwe-whitepaper-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 15px;
    color: #333;
    transition: border-color 0.2s ease;
}

.wpwe-whitepaper-form input[type="text"]:focus,
.wpwe-whitepaper-form input[type="email"]:focus,
.wpwe-whitepaper-form select:focus,
.wpwe-whitepaper-form textarea:focus {
    border-color: #999;
    outline: none;
}

.wpwe-whitepaper-form button[type="submit"] {
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wpwe-whitepaper-form button[type="submit"]:hover {
    background-color: #135e96;
}

/* Checkbox-Styles */
.wpwe-whitepaper-form .form-check {
    padding-left: 0;
    margin-top: 10px;
}

.wpwe-whitepaper-form .form-check-input {
    margin-right: 8px;
    width: auto;
}

.wpwe-whitepaper-form .form-check-label {
    display: inline;
    font-weight: normal;
    font-size: 14px;
    color: #555;
}

/* Form-Validierung */
.wpwe-whitepaper-form .is-invalid {
    border-color: #dc3545;
}

.wpwe-whitepaper-form .invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 5px;
    font-size: 13px;
    color: #dc3545;
}

.wpwe-form-message {
    margin-bottom: 20px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 15px;
}

.wpwe-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpwe-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Whitepapers-Liste für Archive */
.wpwe-whitepaper-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.wpwe-whitepaper-list-item {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpwe-whitepaper-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Bootstrap Card Anpassungen */
.wpwe-whitepaper-list .card {
    height: 100%;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wpwe-whitepaper-list .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.wpwe-whitepaper-list .card-img-top {
    height: 180px;
    object-fit: cover;
}

.wpwe-whitepaper-list .card-body {
    padding: 20px;
}

.wpwe-whitepaper-list .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.wpwe-whitepaper-list .card-text {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Verifizierungsmodal */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

#wpweSuccessModal .modal-content,
#wpweErrorModal .modal-content,
#wpweVerificationModal .modal-content {
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

#wpweSuccessModal .modal-header,
#wpweErrorModal .modal-header,
#wpweVerificationModal .modal-header {
    background-color: #f8f9fa;
    border-bottom-color: #eaeaea;
    padding: 15px 20px;
}

#wpweSuccessModal .modal-body,
#wpweErrorModal .modal-body,
#wpweVerificationModal .modal-body {
    padding: 20px;
}

#wpweSuccessModal .modal-footer,
#wpweErrorModal .modal-footer,
#wpweVerificationModal .modal-footer {
    background-color: #f8f9fa;
    border-top-color: #eaeaea;
    padding: 15px 20px;
}

/* Responsive Anpassungen */
@media (max-width: 576px) {
    .wpwe-whitepaper-form-container {
        padding: 20px;
    }
    
    .wpwe-whitepaper-list {
        grid-template-columns: 1fr;
    }
}