/* --- Ice Skating Bazaar Plugin Styles --- */

.isb-wrapper {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 15px;
    box-sizing: border-box;
}

.isb-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.isb-separator {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

/* --- Form Styles --- */
#isb-ad-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.isb-form-group {
    margin-bottom: 18px;
}

.isb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #34495e;
}

.isb-form-group input[type="text"],
.isb-form-group textarea,
.isb-form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
}

.isb-form-group input[type="submit"] {
    width: auto;
    background-color: #3498db;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.isb-form-group input[type="submit"]:hover {
    background-color: #2980b9;
}

.isb-captcha-group input[type="text"] {
    width: 100px;
}

/* --- Notice/Message Styles --- */
.isb-notice {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    border-left-width: 5px;
    border-left-style: solid;
}

.isb-success {
    background-color: #dff0d8;
    border-color: #4CAF50;
    color: #3c763d;
}

.isb-error {
    background-color: #f2dede;
    border-color: #d9534f;
    color: #a94442;
}

/* --- Listings Styles --- */
.isb-listings-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.isb-ad-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.isb-ad-card:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .isb-ad-card {
        flex-direction: row;
    }
}

.isb-ad-image {
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.isb-ad-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .isb-ad-image img {
        width: 250px;
        height: 100%;
    }
}

.isb-ad-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.isb-ad-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.isb-ad-details div {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.isb-ad-description {
    margin-top: 15px;
    margin-bottom: 15px;
    color: #333;
    flex-grow: 1;
}

.isb-card-separator {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.isb-ad-contact, .isb-ad-poster {
    font-size: 0.9em;
    color: #777;
}

.isb-ad-actions {
    margin-top: 15px;
    text-align: right;
}

.isb-delete-link {
    font-size: 0.85em;
    color: #a94442; /* Dark Red */
    text-decoration: none;
    border: 1px solid #e0b4b4;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.isb-delete-link:hover {
    color: #fff;
    background-color: #c9302c;
    border-color: #c9302c;
}