/**
 * My Collection Dashboard Styles
 * Specific styles for the subscriber dashboard view
 *
 * @package    Magazines_Collection
 * @since      0.0.26
 */

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.mc-dashboard {
    padding: 0;
    margin: 0;
}

.mc-widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 0;
}

.mc-widget {
    background: #fff;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0;
    overflow: hidden;
}

.mc-widget h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    background: #f5f7fa;
    padding: 0.75rem 1rem;
}

.mc-widget-content {
    color: #555;
    padding: 1rem;
}

.mc-nav {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 0;
}

.mc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.mc-nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.mc-nav a:hover {
    background: #f5f5f5;
    color: #0073aa;
}

.mc-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0073aa;
    margin: 0.5rem 0;
}

.mc-quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mc-quick-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.mc-quick-links li:last-child {
    border-bottom: none;
}

.mc-quick-links a {
    text-decoration: none;
    color: #0073aa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mc-quick-links a:hover {
    color: #005177;
}

.mc-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.mc-item-card {
    text-align: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
    transition: all 0.3s;
}

.mc-item-card:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.mc-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.mc-item-count {
    color: #666;
    font-size: 0.9rem;
}

/* Recent Additions */
.mc-additions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mc-addition-card {
    text-align: center;
    transition: transform 0.2s;
}

.mc-addition-card:hover {
    transform: translateY(-4px);
}

.mc-addition-thumbnail {
    width: 100%;
    padding-top: 141%;
    position: relative;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mc-addition-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-addition-info {
    margin-top: 0.5rem;
    text-align: center;
}

.mc-addition-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-addition-magazine {
    font-size: 0.75rem;
    color: #0073aa;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mc-addition-date {
    font-size: 0.7rem;
    color: #999;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    font-weight: 600;
    color: #2c3e50;
    background: #f9f9f9;
}

table tr:hover {
    background: #f9f9f9;
}

table a {
    color: #0073aa;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* Badges */
.mc-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

.mc-badge-private {
    background: #f0f0f0;
    color: #666;
}

.mc-badge-public {
    background: #d4edda;
    color: #155724;
}

.mc-badge-success {
    background: #d4edda;
    color: #155724;
}

/* Search Widget */
.mc-search-form {
    margin-bottom: 1.5rem;
}

.mc-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.mc-search-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.mc-search-field input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.mc-search-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.mc-search-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.button:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

.button-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.button-primary:hover {
    background: #005177;
    border-color: #005177;
}

.button-small {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.mc-search-results {
    margin-top: 2rem;
}

.mc-search-results h3 {
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mc-widget-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.mc-widget-table th,
.mc-widget-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mc-widget-table th {
    font-weight: 600;
    color: #2c3e50;
    background: #f9f9f9;
}

.mc-widget-table tr:hover {
    background: #f9f9f9;
}

.mc-clickable-row {
    cursor: pointer;
}

.mc-action-cell {
    text-align: center;
}

.mc-empty-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.mc-search-instructions {
    padding: 1rem;
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    color: #666;
    margin-top: 1rem;
}

/* Collection Dialog */
.mc-collection-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 10000;
    min-width: 300px;
    display: none;
}

.mc-collection-dialog select {
    width: 100%;
    padding: 0.5rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mc-dialog-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Widget Footer */
.mc-widget-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.mc-widget-footer .button {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mc-widget-footer .button-primary {
    background-color: #0073aa;
    color: #fff;
}

.mc-widget-footer .button-primary:hover {
    background-color: #005177;
}

/* Stats Grid */
.mc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.mc-stat-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    transition: all 0.2s;
}

.mc-stat-card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.mc-stat-card .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2271b1;
    margin-bottom: 8px;
}

.mc-stat-content {
    flex: 1;
}

.mc-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.2;
}

.mc-stat-label {
    font-size: 13px;
    color: #646970;
    margin-top: 5px;
}

.mc-stat-link {
    margin-top: 10px;
    font-size: 12px;
    color: #2271b1;
    text-decoration: none;
}

.mc-stat-link:hover {
    color: #135e96;
}
/* Your Magazines Toolbar Widget */
.mc-toolbar-widget {
    margin-bottom: 0;
    min-height: auto !important;
}

.mc-toolbar-widget h2 {
    margin-bottom: 1rem;
}

.mc-toolbar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mc-toolbar-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.mc-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 6px 14px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mc-badge:hover {
    background: #005a87;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.mc-badge-count {
    font-weight: 700;
    margin-right: 4px;
}

.mc-badge-label {
    font-weight: 500;
}
}

.mc-badge-issues:hover {
    border-color: #3498db;
}

.mc-badge-magazines:hover {
    border-color: #9b59b6;
}

.mc-badge-labels:hover {
    border-color: #e67e22;
}

.mc-badge-authors:hover {
    border-color: #1abc9c;
}

.mc-badge-collections:hover {
    border-color: #e74c3c;
}

.mc-toolbar-search {
    position: relative;
}

.mc-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mc-search-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mc-search-input::placeholder {
    color: #999;
}

.mc-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.mc-search-results-section {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f1;
}

.mc-search-results-section:last-child {
    border-bottom: none;
}

.mc-search-results-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    color: #646970;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.mc-search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mc-search-results-list li {
    margin-bottom: 0.5rem;
}

.mc-search-results-list li:last-child {
    margin-bottom: 0;
}

.mc-search-results-list a {
    display: block;
    padding: 0.5rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mc-search-results-list a:hover {
    background: #f0f0f1;
}

.mc-search-view-all {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem;
    text-align: center;
    color: #2271b1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.mc-search-view-all:hover {
    background: #f0f0f1;
}

.mc-search-no-results {
    padding: 2rem;
    text-align: center;
    color: #646970;
}

.mc-search-loading {
    padding: 2rem;
    text-align: center;
    color: #646970;
}

/* Search Results Widget Styles - Consistent with site design */
.mc-search-results-widget {
    margin-top: 2rem;
}

.mc-search-results-widget h2 {
    background: #f5f7fa;
    color: #333;
}

.mc-search-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mc-search-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mc-search-section h3 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
}

.mc-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mc-search-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f7fa;
}

.mc-search-list li:last-child {
    border-bottom: none;
}

.mc-search-list a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mc-search-list a:hover {
    color: #005a87;
}

.mc-search-meta {
    display: inline-block;
    margin-left: 0.5rem;
    color: #999;
    font-size: 0.9rem;
    font-weight: normal;
}

.mc-badge-user-label {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: #0073aa;
    color: white;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
