/*
 * Frontend-Styling für die Hochzeitsliste.
 */
.wedding-list-container {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wedding-list-header {
    text-align: center;
    margin-bottom: 20px;
}

.wedding-list-header h1 {
    font-size: 2.5em;
    color: #4a4a4a;
}

.gift-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.gift-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.gift-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gift-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
}

.gift-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}

.gift-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px 0;
}

.gift-price {
    font-size: 1em;
    color: #666;
    margin: 0;
}

.gift-actions {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.gift-status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
}

.status-available {
    color: #28a745;
    background-color: #e2f9e4;
}

.status-reserved {
    color: #ffc107;
    background-color: #fff8e1;
}

.status-confirmed {
    color: #6c757d;
    background-color: #f1f1f1;
}

.action-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reserve-btn {
    background-color: #007bff;
    color: white;
}
.reserve-btn:hover {
    background-color: #0056b3;
}

.unreserve-btn {
    background-color: #dc3545;
    color: white;
}
.unreserve-btn:hover {
    background-color: #c82333;
}

.confirm-btn {
    background-color: #28a745;
    color: white;
}
.confirm-btn:hover {
    background-color: #218838;
}

.no-gifts-message {
    grid-column: 1 / -1;
    text-align: center;
    font-style: italic;
    color: #777;
}

/* Detailseite */
.gift-detail-page {
    padding: 40px;
}

.gift-detail-card {
    display: flex;
    gap: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

.gift-detail-image-container {
    flex-basis: 50%;
}

.gift-detail-image {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.gift-detail-content {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.gift-detail-title {
    font-size: 2.2em;
    color: #333;
    margin-top: 0;
}

.gift-detail-description {
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.gift-detail-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #4a4a4a;
}

.ref-button {
    display: inline-block;
    background-color: #4a4a4a;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.ref-button:hover {
    background-color: #2c3e50;
}

.gift-status-detail {
    margin-top: 15px;
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

/* Admin-Styling */
.wrap {
    font-family: Arial, sans-serif;
    color: #333;
}

.wp-list-table {
    margin-top: 20px;
}

.form-table th, .form-table td {
    vertical-align: top;
}

.regular-text, .large-text {
    width: 100%;
    max-width: 600px;
}

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

.button-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gift-detail-card {
        flex-direction: column;
    }

    .gift-detail-content {
        padding: 0;
    }
}
