/**
 * CS Skins Public Styles
 * Integrated with Newspaper X theme
 */

/* Main catalog container */
.cs-skins-catalog {
    padding: 20px 0;
}

.cs-catalog-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #001936;
    font-family: 'Jura', serif;
    font-weight: 700;
}

/* Categories Section */
.cs-categories-section {
    margin-bottom: 40px;
}

/* 3 Columns Layout for Desktop */
.cs-categories-three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cs-category-column {
    display: flex;
    flex-direction: column;
}

.cs-category-column .cs-category-block {
    margin-bottom: 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-category-column .cs-category-block h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #e63946;
    color: #001936;
    font-family: 'Jura', serif;
    flex-shrink: 0;
}

/* Scrollable area for desktop */
.cs-category-scroll {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Custom scrollbar styling */
.cs-category-scroll::-webkit-scrollbar {
    width: 6px;
}

.cs-category-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cs-category-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cs-category-scroll::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.cs-category-block {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
}

.cs-category-block h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e63946;
    color: #001936;
    font-family: 'Jura', serif;
}

/* Weapon Types Grid */
.cs-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.cs-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    background: #f5f5f5;
    text-decoration: none;
    color: #001936;
    transition: all 0.3s ease;
    border: 1px solid #e1e1e1;
}

.cs-category-item:hover {
    background: #e63946;
    color: #fff;
    transform: translateY(-3px);
}

/* Category Image - Background Image 90x90 */
.cs-category-image {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Red background on category hover */
.cs-category-item:hover .cs-category-image {
    background-color: #e63946;
}

.cs-category-name {
    font-size: 0.9em;
    font-weight: 600;
}

/* Rarity List */
.cs-rarity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cs-rarity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f5f5f5;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
}

.cs-rarity-item:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cs-rarity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Collection Grid */
.cs-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.cs-collection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    text-decoration: none;
    color: #001936;
    transition: all 0.3s ease;
    border: 1px solid #e1e1e1;
}

.cs-collection-item:hover {
    background: #e63946;
    color: #fff;
    transform: translateY(-3px);
}

/* Collection Image - Background Image 90x90 */
.cs-collection-image {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Red background on collection hover */
.cs-collection-item:hover .cs-collection-image {
    background-color: #e63946;
}

.cs-collection-name {
    font-size: 0.95em;
    font-weight: 600;
}

/* Recent Skins Section */
.cs-recent-skins-section {
    margin-top: 30px;
}

.cs-recent-skins-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #e63946;
    color: #001936;
    font-family: 'Jura', serif;
}

/* Skins Grid */
.cs-skins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .cs-skins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cs-skins-grid {
        grid-template-columns: 1fr;
    }
}

.cs-skin-card {
    background: #fff;
    overflow: hidden;
    border: 3px solid;
    transition: all 0.3s ease;
}

.cs-skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cs-skin-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Skin Preview - Background Image */
.cs-skin-preview {
    height: 150px;
    background-color: #1a1a1a;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.cs-skin-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d2d2d;
}

.cs-skin-no-image span {
    color: #888;
    font-style: italic;
}

.cs-skin-info {
    padding: 15px;
    background: #fff;
}

.cs-skin-name {
    margin: 0 0 8px;
    font-size: 1em;
    color: #001936;
    font-family: 'Jura', serif;
    font-weight: 700;
}

.cs-skin-weapon {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.cs-skin-rarity {
    display: block;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 5px;
}

.cs-skin-stattrak,
.cs-skin-souvenir {
    display: inline-block;
    font-size: 0.75em;
    padding: 2px 6px;
    margin-top: 5px;
    margin-right: 5px;
    font-weight: 600;
}

.cs-skin-stattrak {
    background: #ff6b35;
    color: #fff;
}

.cs-skin-souvenir {
    background: #ffd700;
    color: #333;
}

/* Single Skin Page */
.cs-single-skin {
    padding: 20px 0;
}

.cs-skin-header {
    text-align: center;
    padding: 25px;
    border-bottom: 5px solid #e63946;
    margin-bottom: 25px;
    background: #fff;
}

.cs-skin-title {
    font-size: 2em;
    margin: 0 0 15px;
    color: #001936;
    font-family: 'Jura', serif;
    font-weight: 700;
}

.cs-skin-rarity-badge {
    display: inline-block;
    padding: 8px 20px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

.cs-skin-options {
    margin-top: 15px;
}

.cs-option-badge {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px;
    font-weight: 600;
    font-size: 0.85em;
}

.cs-stattrak {
    background: #ff6b35;
    color: #fff;
}

.cs-stattrak-icon {
    height: 50px;
    width: auto;
    vertical-align: middle;
    margin: 0 5px;
}

.cs-souvenir {
    background: #ffd700;
    color: #333;
}

.cs-pattern {
    background: #00b4d8;
    color: #fff;
}

.cs-skin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Large Skin Image */
.cs-skin-image-large {
    min-height: 400px;
    background-color: #1e2938;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px;
    border: 1px solid #ddd;
}

.cs-skin-details {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
}

.cs-skin-details h3 {
    border-bottom: 2px solid #e63946;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #001936;
    font-family: 'Jura', serif;
}

.cs-skin-taxonomies {
    margin-bottom: 25px;
}

.cs-taxonomy-item {
    margin-bottom: 12px;
    padding: 10px;
    background: #f5f5f5;
    border-left: 3px solid #e63946;
}

.cs-taxonomy-item .cs-label {
    font-weight: bold;
    color: #666;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.cs-taxonomy-item a {
    color: #e63946;
    text-decoration: none;
    font-weight: 600;
}

.cs-taxonomy-item a:hover {
    text-decoration: underline;
}

.cs-skin-lore blockquote {
    font-style: italic;
    color: #666;
    border-left: 4px solid #e63946;
    padding-left: 20px;
    margin: 0;
    background: #f9f9f9;
    padding: 15px 15px 15px 25px;
}

.cs-skin-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.cs-back-link {
    display: inline-block;
    padding: 12px 30px;
    background: #2d2d2d;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cs-back-link:hover {
    background: #e63946;
    color: #fff;
}

/* Taxonomy Archive Page */
.cs-taxonomy-archive {
    padding: 20px 0;
}

.cs-taxonomy-header {
    text-align: center;
    padding: 25px;
    border-bottom: 5px solid #e63946;
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-bottom-width: 5px;
}

.cs-taxonomy-title {
    font-size: 2em;
    margin: 0 0 15px;
    color: #001936;
    font-family: 'Jura', serif;
    font-weight: 700;
}

/* Taxonomy Image - Background 90x90 */
.cs-taxonomy-image {
    width: 90px;
    height: 90px;
    margin: 15px auto;
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
}

.cs-taxonomy-description {
    color: #666;
    margin: 15px 0;
}

.cs-taxonomy-history,
.cs-taxonomy-full-description {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    text-align: left;
}

.cs-taxonomy-history h3,
.cs-taxonomy-skins h2 {
    border-bottom: 2px solid #e63946;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #001936;
    font-family: 'Jura', serif;
}

.cs-no-skins {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #f5f5f5;
    color: #001936;
    text-decoration: none;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #e63946;
    color: #fff;
}

.pagination .current {
    background: #e63946;
    color: #fff;
    font-weight: bold;
}

/* Responsive */
/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .cs-categories-three-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* 3 Columns to single column on mobile */
    .cs-categories-three-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Remove scroll and max-height on mobile */
    .cs-category-scroll {
        max-height: none;
        overflow-y: visible;
        overflow-x: visible;
        padding-right: 0;
    }

    .cs-category-column .cs-category-block {
        height: auto;
    }

    .cs-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .cs-skins-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .cs-skin-content {
        grid-template-columns: 1fr;
    }

    .cs-skin-title,
    .cs-taxonomy-title {
        font-size: 1.6em;
    }

    .cs-skin-image-large {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .cs-catalog-title {
        font-size: 1.5em;
    }

    .cs-skins-grid {
        grid-template-columns: 1fr;
    }

    .cs-rarity-list {
        justify-content: center;
    }

    .cs-taxonomy-image {
        width: 90px;
        height: 90px;
    }
}
