/* Notice Actions Widget Styles */
.gw-notice-actions {
    display: flex;
    align-items: center;
}

.gw-notice-actions.inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.gw-notice-actions.stacked {
    flex-direction: column;
    align-items: stretch;
}

.gw-notice-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.delete-post-button {
    background-color: #e74c3c;
    color: #fff;
}

.delete-post-button:hover {
    background-color: #c0392b;
    color: #fff;
}

.edit-post-button {
    background-color: #3498db;
    color: #fff;
}

.edit-post-button:hover {
    background-color: #2980b9;
    color: #fff;
}

/* Contact Info Widget Styles */
.gw-contact-info {
    display: flex;
    flex-direction: column;
}

.gw-contact-text {
    margin-bottom: 10px;
}

.contact-label {
    font-weight: 600;
    margin-right: 5px;
}

.gw-message-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background-color: #27ae60;
    color: #fff;
    transition: all 0.3s ease;
}

.gw-message-button:hover {
    background-color: #229954;
    color: #fff;
}

/* Notice Skin Styles */
.gw-notice-skin {
    display: grid;
    gap: 20px;
}

.gw-notice-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.gw-notice-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gw-notice-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.gw-notice-avatar {
    flex-shrink: 0;
}

.gw-notice-avatar img {
    border-radius: 50%;
}

.gw-notice-meta {
    flex: 1;
}

.gw-notice-title {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    line-height: 1.4;
}

.gw-notice-title a {
    color: inherit;
    text-decoration: none;
}

.gw-notice-title a:hover {
    color: #3498db;
}

.gw-notice-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
    color: #666;
}

.gw-notice-author {
    font-weight: 600;
}

.gw-notice-region {
    padding: 2px 8px;
    background: #ecf0f1;
    border-radius: 4px;
}

.gw-notice-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.gw-notice-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.gw-contact-info a {
    color: #3498db;
    text-decoration: none;
}

.gw-contact-info a:hover {
    text-decoration: underline;
}

/* Compact Card Style */
.gw-notice-compact .gw-notice-header {
    margin-bottom: 10px;
}

.gw-notice-compact .gw-notice-title {
    font-size: 1.1em;
}

.gw-notice-compact .gw-notice-content {
    font-size: 0.9em;
}

/* Detailed Card Style */
.gw-notice-detailed {
    padding: 25px;
}

.gw-notice-detailed .gw-notice-title {
    font-size: 1.5em;
}

.gw-notice-detailed .gw-notice-content {
    font-size: 1.05em;
}

/* My Notices Widget Styles */
.gw-my-notices-wrapper {
    margin: 20px 0;
}

/* Message Styles */
.gw-my-notices-message {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.gw-my-notices-message p {
    margin: 0 0 10px 0;
}

.gw-my-notices-message p:last-child {
    margin-bottom: 0;
}

.gw-my-notices-message a {
    color: #3498db;
    text-decoration: none;
}

.gw-my-notices-message a:hover {
    text-decoration: underline;
}

/* Table Layout */
.gw-my-notices-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.gw-my-notices-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #dee2e6;
    background: #fff;
}

.gw-my-notices-table thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
}

.gw-my-notices-table tbody tr {
    transition: background-color 0.2s ease;
}

.gw-my-notices-table tbody tr:hover {
    background-color: #f8f9fa;
}

.gw-my-notices-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.gw-my-notices-table tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

.gw-my-notices-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.gw-my-notices-table .gw-col-thumbnail {
    width: 80px;
    text-align: center;
}

.gw-my-notices-table .gw-notice-thumb {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}

.gw-my-notices-table .gw-no-thumb {
    color: #adb5bd;
    font-size: 1.2em;
}

.gw-my-notices-table .gw-col-title {
    min-width: 200px;
}

.gw-my-notices-table .gw-col-title a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.gw-my-notices-table .gw-col-title a:hover {
    color: #3498db;
}

.gw-my-notices-table .gw-col-status {
    width: 100px;
}

.gw-my-notices-table .gw-col-date {
    width: 120px;
    white-space: nowrap;
}

.gw-my-notices-table .gw-col-region,
.gw-my-notices-table .gw-col-type {
    width: 150px;
}

.gw-my-notices-table .gw-col-actions {
    width: 180px;
}

/* Status Badges */
.gw-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: capitalize;
}

.gw-status-publish {
    background-color: #d4edda;
    color: #155724;
}

.gw-status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.gw-status-pending {
    background-color: #d1ecf1;
    color: #0c5460;
}

.gw-status-private {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Cards Layout */
.gw-my-notices-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gw-notice-card-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.gw-notice-card-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gw-card-header {
    margin-bottom: 15px;
}

.gw-card-thumbnail {
    margin-bottom: 12px;
}

.gw-card-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.gw-card-title h3 {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    line-height: 1.4;
}

.gw-card-title a {
    color: #212529;
    text-decoration: none;
}

.gw-card-title a:hover {
    color: #3498db;
}

.gw-card-meta {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.gw-card-meta > div {
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #6c757d;
}

.gw-card-meta > div:last-child {
    margin-bottom: 0;
}

.gw-card-meta strong {
    color: #495057;
}

.gw-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Action Buttons */
.gw-my-notice-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gw-my-notice-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gw-my-notice-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.gw-my-notice-view-btn {
    background-color: #6c757d;
}

.gw-my-notice-view-btn:hover {
    background-color: #5a6268;
}

.gw-my-notice-edit-btn {
    background-color: #3498db;
}

.gw-my-notice-edit-btn:hover {
    background-color: #2980b9;
}

.gw-my-notice-delete-btn {
    background-color: #e74c3c;
}

.gw-my-notice-delete-btn:hover {
    background-color: #c0392b;
}

/* Pagination */
.gw-my-notices-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.gw-my-notices-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gw-my-notices-pagination .page-numbers:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.gw-my-notices-pagination .page-numbers.current {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.gw-my-notices-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .gw-notice-header {
        flex-direction: column;
    }
    
    .gw-notice-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .gw-notice-actions.inline {
        flex-direction: column;
        align-items: stretch;
    }

    /* My Notices responsive */
    .gw-my-notices-table {
        font-size: 0.9em;
    }

    .gw-my-notices-table thead {
        display: none;
    }

    .gw-my-notices-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        overflow: hidden;
    }

    .gw-my-notices-table td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .gw-my-notices-table td:last-child {
        border-bottom: none;
    }

    .gw-my-notices-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: #495057;
    }

    .gw-my-notices-table .gw-col-thumbnail {
        text-align: center;
    }

    .gw-my-notices-table .gw-col-actions {
        text-align: center;
    }

    .gw-my-notices-table .gw-my-notice-actions {
        justify-content: center;
    }

    .gw-my-notices-cards {
        grid-template-columns: 1fr;
    }

    .gw-card-actions {
        flex-direction: column;
    }

    .gw-my-notice-action-btn {
        width: 100%;
        justify-content: center;
    }
}
