/*==================================================
 PLC Worksheets Premium v2
 File : style.css
 Part : 1
==================================================*/

:root{

    --primary:#2563eb;
    --primary-dark:#1d4ed8;

    --green:#22c55e;
    --orange:#f97316;

    --bg:#f4f7fc;

    --text:#1e293b;
    --muted:#64748b;

    --border:#e5e7eb;

    --radius:18px;

}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    background:var(--bg);

    font-family:Inter,Arial,sans-serif;

    color:var(--text);

}

/*==============================
Main Wrapper
==============================*/

.plcw-wrap{

    max-width:1450px;

    margin:40px auto;

    display:grid;

    grid-template-columns:300px 1fr;

    gap:30px;

    align-items:start;

}

/*==============================
Sidebar
==============================*/

.plcw-filters{

    background:#fff;

    border-radius:20px;

    padding:25px;

    box-shadow:0 15px 45px rgba(0,0,0,.08);

    position:sticky;

    top:20px;

}

/* Header */

.plcw-filters-head{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:22px;

}

.plcw-filters-head span{

    font-size:26px;

    font-weight:700;

    color:var(--primary);

}

.plcw-reset{

    text-decoration:none;

    color:#ef4444;

    font-weight:600;

}

.plcw-reset:hover{

    color:#dc2626;

}

/*==============================
Search
==============================*/

.plcw-search-box{
    position:relative;
    width:100%;
    margin-bottom:25px;
}

.plcw-search-box i{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#9ca3af;
    font-size:16px;
    z-index:2;
    pointer-events:none;
}

.plcw-search{
    width:100%;
    height:48px;
    padding:0 15px 0 45px !important;
    border:1px solid #d1d5db;
    border-radius:12px;
    background:#fff;
    font-size:14px;
    outline:none;
    box-sizing:border-box;
}

.plcw-search:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/*==============================
Filter Group
==============================*/

.plcw-filter-group{

    margin-bottom:28px;

}

.plcw-filter-group h4{

    font-size:17px;

    margin-bottom:15px;

    font-weight:700;

}

.plcw-check{

    display:flex;

    align-items:center;

    gap:10px;

    cursor:pointer;

    margin-bottom:12px;

    color:#475569;

}

.plcw-check input{

    width:18px;

    height:18px;

}

/*==============================
Right Side
==============================*/

.plcw-results{

    width:100%;

}

/* Toolbar */

.plcw-toolbar{

    background:#fff;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

    padding:20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

.plcw-count-result{

    font-size:18px;

    font-weight:700;

    color:var(--primary);

}

.plcw-sort{

    width:220px;

    height:48px;

    border-radius:12px;

    border:1px solid var(--border);

    padding:0 14px;

    outline:none;

}

/*==============================
Grid
==============================*/

.plcw-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:25px;
}


/*==============================
Responsive
==============================*/
@media(max-width:1200px){
    .plcw-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:576px){
    .plcw-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:992px){

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

    .plcw-filters{

        position:relative;

    }

}

@media(max-width:768px){

    .plcw-toolbar{

        flex-direction:column;

        gap:15px;

    }

    .plcw-sort{

        width:100%;

    }

    .plcw-grid{

        grid-template-columns:1fr;

    }

}



/*=========================================
 PART 2 - Premium Worksheet Card
==========================================*/
.plcw-card{
    display:flex;
    flex-direction:column;
    height:100%;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
}
.plcw-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 60px rgba(15,23,42,.18);
}

/* Image */

.plcw-card-image{
    position:relative;
    height:240px;
    overflow:hidden;
    background:#eef2ff;
}

.plcw-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.plcw-card:hover .plcw-card-image img{
    transform:scale(1.08);
}

/* Gradient Overlay */

.plcw-card-image::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:90px;
    background:linear-gradient(to top,
        rgba(0,0,0,.55),
        transparent);
}

/*==========================
 Badge
==========================*/

.plcw-badge{
    position:absolute;
    top:16px;
    left:16px;
    z-index:20;
    padding:8px 18px;
    border-radius:50px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.4px;
    color:#fff;
    text-transform:uppercase;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.plcw-badge.free{
    background:#22c55e;
}

.plcw-badge.premium{
    background:linear-gradient(135deg,#f59e0b,#d97706);
}

/*==========================
 Content
==========================*/

.plcw-content{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:20px;
}

.plcw-content h3{
    font-size:22px;
    line-height:1.4;
    font-weight:700;
    color:#111827;
    margin-bottom:5px;
    text-transform: capitalize;
}

/*==========================
 Tags
==========================*/

.plcw-tags{
    display:flex;
    flex-wrap:wrap;
    gap:1px;
    margin:10px 0;
}

.plcw-tags span{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:6px 12px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
}

.tag-class{
    background:#e0f2fe;
    color:#0369a1;
}

.tag-subject{
    background:#dcfce7;
    color:#15803d;
}

.tag-type{
    background:#fef3c7;
    color:#b45309;
}
/*==========================
 Stats
==========================*/

.plcw-stats{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid #edf2f7;
    border-bottom:1px solid #edf2f7;
    padding:14px 0;
    margin-bottom:22px;
    color:#64748b;
    font-size:14px;
}

/*==========================
 Buttons
==========================*/

.plcw-actions{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin-top:auto;
}

.plcw-actions a,
.plcw-actions button{
    height:40px;
    border:none;
    border-radius:12px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    cursor:pointer;
    transition:.25s;
    color:#fff;
    font-weight:600;
    font-size:14px;
}

.plcw-actions a:hover,
.plcw-actions button:hover{
    transform:translateY(-2px);
}

/* Button Colors */

.preview{
    background:#2563eb;
}

.read{
    background:#0ea5e9;
}

.download{
    background:#16a34a;
}

.share{
    background:#f97316;
}

.preview:hover{
    background:#1d4ed8;
}

.read:hover{
    background:#0284c7;
}

.download:hover{
    background:#15803d;
}

.share:hover{
    background:#ea580c;
}

/*==========================
 Responsive
==========================*/

@media(max-width:768px){

    .plcw-card-image{
        height:210px;
    }

    .plcw-content{
        padding:18px;
    }

    .plcw-content h3{
        font-size:19px;
    }

    .plcw-actions{
        grid-template-columns:1fr;
    }

}

/*=========================================
 PART 3 - Modal, Loading & Animation
==========================================*/

/* PDF Modal */

.plcw-modal{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.85);
    display:none;
    align-items:center;
    justify-content:center;
    padding:25px;
    z-index:999999;
}

.plcw-modal.show{
    display:flex;
    animation:fadeIn .3s ease;
}

.plcw-modal-content{
    position:relative;
    width:95%;
    max-width:1300px;
    height:92vh;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 25px 80px rgba(0,0,0,.35);
}

.plcw-modal iframe{
    width:100%;
    height:100%;
    border:0;
}

.plcw-close{
    position:absolute;
    top:15px;
    right:15px;
    width:44px;
    height:44px;
    border:none;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
    z-index:100;
}

.plcw-close:hover{
    transform:rotate(90deg);
    background:#dc2626;
}

/* Loader */

.plcw-loading{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:250px;
}

.plcw-spinner{
    width:60px;
    height:60px;
    border:5px solid #e5e7eb;
    border-top:5px solid #2563eb;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

/* Empty State */

.plcw-empty{
    background:#fff;
    border-radius:20px;
    padding:70px 30px;
    text-align:center;
    box-shadow:0 12px 35px rgba(0,0,0,.06);
}

.plcw-empty h3{
    font-size:28px;
    margin-bottom:10px;
    color:#111827;
}

.plcw-empty p{
    color:#64748b;
    font-size:15px;
}

/* Skeleton Loading */

.plcw-skeleton{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.plcw-skeleton-image{
    height:220px;
    background:#e5e7eb;
    animation:pulse 1.5s infinite;
}

.plcw-skeleton-content{
    padding:20px;
}

.plcw-skeleton-line{
    height:14px;
    border-radius:8px;
    margin-bottom:14px;
    background:#e5e7eb;
    animation:pulse 1.5s infinite;
}

.plcw-skeleton-line.short{
    width:60%;
}

.plcw-skeleton-line.medium{
    width:85%;
}

/* Pagination */

.plcw-pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:35px;
}

.plcw-pagination a,
.plcw-pagination span{
    width:46px;
    height:46px;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    border-radius:12px;
    background:#fff;
    color:#2563eb;
    font-weight:600;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    transition:.25s;
}

.plcw-pagination a:hover{
    background:#2563eb;
    color:#fff;
}

.plcw-pagination .current{
    background:#2563eb;
    color:#fff;
}

/* Animations */

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

@keyframes pulse{
    0%{opacity:.55;}
    50%{opacity:1;}
    100%{opacity:.55;}
}

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

/* Mobile */

@media(max-width:768px){

    .plcw-modal{
        padding:10px;
    }

    .plcw-modal-content{
        width:100%;
        height:96vh;
        border-radius:12px;
    }

    .plcw-close{
        width:40px;
        height:40px;
    }

    .plcw-pagination{
        flex-wrap:wrap;
    }

}

.plcw-actions{
    margin-top:auto;
    display:flex;
    gap:10px;
    justify-content:space-between;
}

.plcw-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    width:100%;
    height:42px;          /* પહેલાં 46px હતું */

    padding:0 12px;

    border:none;
    border-radius:8px;

    font-size:13px;       /* પહેલાં 14px હતું */
    font-weight:600;

    color:#fff !important;
    text-decoration:none;

    transition:.3s;
}



.plcw-btn:hover{

    transform:translateY(-3px);

}
.btn-preview{
    background:#2563eb;
}

.btn-download{
    background:#16a34a;
}

.btn-share{
    background:#ea580c;
}

.btn-read{
        background:linear-gradient(135deg,#8b5cf6,#7c3aed);
}
.btn-read:hover{
    background:linear-gradient(135deg,#7c3aed,#6d28d9);

}


.btn-preview:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}


.btn-download:hover{
    background:#15803d;
    transform:translateY(-2px);
}

.btn-share:hover{
    background:#c2410c;
    transform:translateY(-2px);
}

.plcw-btn i{
    margin-right:8px;
}

.plcw-btn:hover{
    color:#fff !important;
}

.plcw-filter-group h4{
    display:flex;
    align-items:center;
    gap:10px;

    font-size:18px;
    font-weight:700;
    margin-bottom:18px;
}

.plcw-filter-group h4 i{
    font-size:18px;
}

/* Worksheet Type */
.icon-type{
    color:#8b5cf6;   /* Purple */
}

/* Class */
.icon-class{
    color:#2563eb;   /* Blue */
}

/* Subject */
.icon-subject{
    color:#16a34a;   /* Green */
}