/* deckshow.css - Add your custom styles for DeckCardPage here */


/* Deck Show Styles */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#sidebar,
.sidebar,
.side,
.sns-buttons,
.widget-area {
    display: none !important;
}

#main,
.main,
.content,
.site-main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    min-height: 100vh;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-section {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 6px;
    padding: 0 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-section:hover {
    background: #e6f7ff;
}

.search-text {
    font-size: 1.1em;
    margin-right: 8px;
    color: #1890ff;
}

#summary-count {
    font-size: 1em;
    color: #555;
    background: #f6f6f6;
    border-radius: 4px;
    padding: 4px 10px;
}


/* Modal Styles */

.deckshow-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
}

.deckshow-modal.active {
    display: flex;
}

.deckshow-modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px 24px 28px;
    min-width: 340px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
}

.deckshow-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2em;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.deckshow-modal-close:hover {
    color: #f5222d;
}

.deckshow-search-modal label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.deckshow-search-modal .form-control,
.deckshow-search-modal .form-select {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    font-size: 1em;
}

.btn {
    padding: 6px 18px;
    border-radius: 4px;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover {
    background: #40a9ff;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e6e6e6;
}


/* Deck Card Grid */

.deckshow-container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.deckcard-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 16px 12px 12px 12px;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.deckcard-order {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.deckcard-order p {
    margin: 0;
}

.deckcard-order span a {
    margin-left: 8px;
    color: #1890ff;
    vertical-align: middle;
}

.deckcard-item picture {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.deckcard-item-wrapper a img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    background: #f6f6f6;
    width: 100%;
}

.deckcard-item p {
    margin: 0 0 4px 0;
    font-size: 0.98em;
    color: #444;
}

.deckcard-item span {
    font-size: 0.95em;
    color: #888;
}


/* Pagination */

.deckshow-pagination {
    text-align: center;
    margin-bottom: 32px;
}

.pagination {
    display: inline-block;
}

.page-btn {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #1890ff;
    margin: 0 2px;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s, color 0.2s;
}

.page-btn.active,
.page-btn:hover {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.no-cards {
    text-align: center;
    color: #888;
    font-size: 1.1em;
    padding: 40px 0;
}


/* edit svg */

.lucide-external-link {
    width: 20px;
    height: 20px;
    stroke: #333;
    /* Dark gray for better contrast */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease, transform 0.2s ease;
    vertical-align: middle;
    cursor: pointer;
}

.lucide-external-link:hover {
    stroke: #007bff;
    /* Blue on hover */
    transform: scale(1.1);
    /* Slight zoom on hover */
}

.lucide-external-link:active {
    transform: scale(0.95);
    /* Pressed effect */
}


/* pagination css */

.deckshow-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.deckshow-pagination .pagination {
    display: flex;
    gap: 8px;
}

.deckshow-pagination .page-btn {
    padding: 8px 14px;
    font-size: 14px;
    background-color: white;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.deckshow-pagination .page-btn:hover {
    background-color: #f0f0f0;
}

.deckshow-pagination .page-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}


/* jump-button */

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    width: 500px;
}

.jump-input {
    width: 60px;
    padding: 4px;
}

.jump-btn {
    padding: 4px 8px;
    background-color: #40a9ff;
    border-radius: 5px;
    border: none;
    color: white;
    font-weight: bold;
}


/* pagination element css */

.pagination-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-inline: 80px;
}

.page-size-selector select {
    width: 125px;
}

.deckcard-item-wrapper {
    margin: 30px;
}

@media screen and (max-width: 1023px) {
    .pagination-wrapper {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .site-main {
        font-size: 12px;
    }
    .pagination-jump {
        width: 300px;
    }
    .deckcard-item-wrapper {
        margin: 10px;
    }
}


-

    .ranking-filter {
      font-family: sans-serif;
      max-width: 360px;
      margin: 20px;
    }

    .ranking-filter label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
    }

    .checkbox-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px 24px;
      margin-top: 8px;
    }

    .checkbox-grid input[type="checkbox"] {
      width: 16px;
      height: 16px;
    }