/**
 * Valorant Weapons Plugin - Frontend Styles
 */

/* ========================
   General Styles
   ======================== */

.vw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.vw-page-header {
    margin: 30px 0;
    text-align: center;
}

.vw-page-header h1 {
    font-size: 2.5em;
    margin: 10px 0;
    color: #11192f;
}

.vw-page-header .description {
    font-size: 1.1em;
    color: #666;
    margin-top: 10px;
}

/* ========================
   Archive Page - 2 Column Layout
   ======================== */

.valorant-weapons-archive {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin: 30px auto;
}

.vw-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.vw-main-content {
    width: 100%;
}

/* ========================
   Sidebar Filters
   ======================== */

.vw-filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.vw-filter-form h3 {
    font-size: 1.3em;
    margin: 0 0 20px 0;
    color: #11192f;
    display: flex;
    align-items: center;
}

.vw-filter-form h3:before {
    content: '⚙️';
    margin-right: 8px;
}

.vw-filter-group {
    margin-bottom: 20px;
}

.vw-filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
}

.vw-filter-group input[type="text"],
.vw-filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
    box-sizing: border-box;
}

.vw-filter-group input[type="text"]:focus,
.vw-filter-group select:focus {
    outline: none;
    border-color: #fd4556;
    box-shadow: 0 0 0 3px rgba(253, 69, 86, 0.1);
}

.vw-filter-button {
    width: 100%;
    padding: 12px;
    background: #fd4556;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.vw-filter-button:hover {
    background: #e63a48;
}

/* ========================
   Results & Sorting
   ======================== */

.vw-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.vw-results-count {
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

.vw-sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vw-sort-group label {
    margin: 0;
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.vw-sort-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

/* ========================
   Skins Grid
   ======================== */

.vw-skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vw-skin-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vw-skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #fd4556;
}

.vw-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vw-card-image {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    overflow: hidden;
}

.vw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vw-skin-card:hover .vw-card-image img {
    transform: scale(1.05);
}

.vw-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 0.9em;
}

.vw-card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vw-card-title {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #11192f;
    font-weight: 700;
    line-height: 1.3;
}

.vw-card-weapon {
    margin: 0 0 10px 0;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.vw-card-meta {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.85em;
    flex-wrap: wrap;
}

.vw-price {
    background: #fd4556;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.vw-date {
    background: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.vw-rarity {
    display: flex;
    gap: 6px;
    margin-top: auto;
    flex-wrap: wrap;
}

.vw-rarity-tag {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.vw-rarity-select {
    background: #e8e8e8;
    color: #333;
}

.vw-rarity-premium {
    background: #d4a574;
    color: white;
}

.vw-rarity-deluxe {
    background: #a335ee;
    color: white;
}

.vw-rarity-ultra {
    background: #fd4556;
    color: white;
}

.vw-rarity-exclusive {
    background: #ffd700;
    color: #333;
}

/* ========================
   Pagination
   ======================== */

.wp-pagenavi {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.wp-pagenavi a,
.wp-pagenavi span {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wp-pagenavi a:hover {
    background: #fd4556;
    color: white;
    border-color: #fd4556;
}

.wp-pagenavi .current {
    background: #fd4556;
    color: white;
    border-color: #fd4556;
}

/* ========================
   Single Skin Page
   ======================== */

.vw-single-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.vw-single-header h1 {
    margin: 0 0 10px 0;
    color: #11192f;
    font-size: 2.2em;
}

.vw-single-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95em;
    color: #666;
}

.vw-single-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.vw-left-column,
.vw-right-column {
    display: flex;
    flex-direction: column;
}

.vw-main-image {
    width: 100%;
    margin-bottom: 20px;
}

.vw-main-image img {
    width: 100%;
    border-radius: 8px;
    background: #f5f5f5;
}

.vw-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.vw-gallery-item {
    flex: 1;
}

.vw-gallery-item img {
    width: 100%;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.vw-gallery-item img:hover {
    transform: scale(1.05);
}

.vw-info-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #fd4556;
    margin-bottom: 20px;
}

.vw-info-box h3 {
    margin: 0 0 15px 0;
    color: #11192f;
    font-size: 1.1em;
    text-transform: uppercase;
}

.vw-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vw-info-item:last-child {
    margin-bottom: 0;
}

.vw-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

.vw-value {
    font-size: 1.15em;
    color: #fd4556;
    font-weight: 700;
}

.vw-price-item .vw-value {
    font-size: 1.4em;
}

.vw-taxonomy-links {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.vw-taxonomy-links a {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.vw-taxonomy-links a:hover {
    background: #1976d2;
    color: white;
}

/* ========================
   Video Section
   ======================== */

.vw-video-section {
    margin: 40px 0;
    clear: both;
}

.vw-video-section h3 {
    margin-top: 0;
    color: #11192f;
}

.vw-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.vw-video-wrapper iframe,
.vw-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* ========================
   Description Section
   ======================== */

.vw-description-section {
    margin: 30px 0;
    line-height: 1.6;
    color: #333;
}

.vw-description-section h3 {
    color: #11192f;
    margin-top: 0;
}

.vw-description-section p {
    margin: 0 0 15px 0;
}

/* ========================
   Related Skins
   ======================== */

.vw-related-section {
    margin: 50px 0;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.vw-related-section h3 {
    color: #11192f;
    font-size: 1.5em;
    margin-bottom: 20px;
}

.vw-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 768px) {
    .valorant-weapons-archive {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vw-single-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vw-skins-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .vw-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .vw-page-header h1 {
        font-size: 1.8em;
    }

    .vw-single-header h1 {
        font-size: 1.6em;
    }

    .vw-results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .vw-skins-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vw-card-title {
        font-size: 0.95em;
    }

    .vw-results-info {
        flex-direction: column;
    }

    .vw-filter-form {
        padding: 15px;
    }

    .vw-info-box {
        padding: 15px;
    }

    .vw-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ========================
   Loading & Animation
   ======================== */

.vw-loading {
    opacity: 0.6;
    pointer-events: none;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vw-skin-card {
    animation: fade-in 0.5s ease;
}
