/**
* explore-templates.php
*/

.templates-main{
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 5%;
}

.templates-main > h1{
    color: #ddd;
}

.templates-main > ul{
    background-color: rgba(18, 24, 18, .4);
    width: 100%;
    max-width: 400px;
    list-style-type: disc;
    margin-top: 1em;
    padding: 1em .5em;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.templates-main > p{
    background-color: rgba(18, 24, 18, .4);
    color: #eee;
    margin-top: 1em;
    padding: 1em .5em;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.templates-main > ul > p{
    color: #eee;
}

.templates-main > ul > p a{
    color: brown;
}

.templates-main > ul h3{
    color: #ddd;
    display: inline-block;
    margin-bottom: .5em;
}

.templates-main > ul > span{
    background: brown;
    float: right;
    border-radius: 50%;
    margin-left: 15px;
}

.templates-main > ul > span a{
    color: #eee;
    font-size: 12px;
    font-family: sans-serif;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4em;
    padding: 5px 10px;
}

.templates-main > ul li{
    color: brown;
}

.templates-main > ul li a{
    color: inherit;
    text-decoration: none;
    line-height: 1.5em;
}

.templates-main > ul li:hover{
    color: #02c9c9;
    cursor: pointer;
}

.templates-main > section h2 {
    color: #fff;
}

.templates-main > section > ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@keyframes transitionTemplates {
    0%{
        opacity: 0;
        transform: scale(0);
    }
    100%{
        opacity: 1;
        transform: scale(1);
    }
}

.templates-main > section > ul li{
    background-color: #1f1f1f;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    border: 1px solid rgb(41, 44, 41);
    border-radius: 5px;
    box-shadow: 0px 0px 6px #111;
    transition: transform .2s ease-in-out;
    animation: 1s transitionTemplates;
}

.templates-main > section > ul li:hover{transform: scale(1.05);}

/*.page-preview{
    width: 100%;
    height: 150px;
    color: #eee;
    text-decoration: none;
    display: block;
    overflow: hidden;
}

.page-preview iframe{
    transform: scale(0.19);
    transform-origin: 0 0;
    width: 525%;
    height: 525%;
    overflow: hidden;
    pointer-events: none;
}*/

.page-preview{
    display: block;
}

.page-preview:hover {cursor: pointer;}

.page-preview img{
    width: 100%;
    display: block;
}

.templates-main > section > ul li h3{
    width: 100%;
    color: #ddd;
    font-size: 1rem;
    font-family: sans-serif;
    font-weight: 400;
    padding: 1em .5em;
}

.templates-main > section > ul a{
    color: #fff;
    text-decoration: none;
}

.templates-main > section > ul a:hover{color: rgba(165, 42, 42, 1);}

.templates-main > section > ul a:active {
  box-shadow: inset 0px 0px 5px #111;
  transform: translateY(2px);
}

.templates-main > section > ul a img {
    width: 1.5em;
    filter: invert(1);
}

@media screen and (min-width: 500px){
    .templates-main {
        padding: 40px 3%;
    }

    .templates-main > section > ul{
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 800px){
    .templates-main > section > ul{
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 1100px){
    .templates-main > section > ul{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/**
 * preview-template.php
 */

#selectTemplateBtn {
    background: linear-gradient(135deg, brown, #FFA500);
    display: flex;
    align-items: center;
    gap: 0.2em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 15%;
    left: 49%;
    z-index: 1000;
    transform: translate(-50%, 0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#selectTemplateBtn:hover {
    transform: translate(-50%, -2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

#selectTemplateBtn:active {
    transform: translate(-50%, 0) scale(0.98);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#selectTemplateBtn img {
    width: 1.2em;
    filter: invert(1);
}

#selectBrandModal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 11000;
    background-color: hsla(0, 0%, 0%, 0.25);
}

#selectBrandModal .wrapper {
    background-color: hsla(0, 0%, 0%, 0.95);
    width: 100%;
    max-width: 400px;
    padding: 1.5em;
    border-radius: 10px;
    position: relative;
}

#selectBrandModal .close-btn {
    background: linear-gradient(135deg, brown, #FFA500);
    width: 1.8em;
    height: 1.8em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 6%;
    right: 2%;
}

#selectBrandModal p a {
    color: brown;
}

#selectBrandModal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    list-style: disc inside;
}

#selectBrandModal li a {
    display: inline-block;
    color: #eee;
    text-decoration: none;
}

#selectBrandModal li a:hover {
    color: brown;
}

/**
 * explore-brands.php
 */

.brands-main {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 3%;
}

.brands-main > h1{
    color: #ddd;
}

.brands-main > p {
    background-color: rgba(0, 0, 0, .4);
    color: #ddd;
    font-size: 1.2em;
    line-height: 1.5em;
    margin: 1em 0;
    padding: .5em;
    border: 1px solid rgb(255, 255, 255, .2);
    border-radius: 5px;
}

.brands-main > p img{
    width: 16px;
}

.business-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 32%);
    justify-content: space-between;
    list-style: none;
}

.business-card{
    background-color: gray;
    min-height: calc(9/16 * 30vw);
    font-family: 'Anek Malayalam', sans-serif;
    display: grid;
    grid-template-columns: 55% 45%;
    margin-bottom: 2em;
    border: 1px solid rgb(18, 24, 18);
    transition: transform .2s;
}

.business-card:hover{
    transform: scale(1.05);
}

.business-card > div{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.business-card > div:nth-child(1){
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(34, 34, 34));
    position: relative;
    cursor: pointer;
}

.business-card > div:nth-child(2){
    background: linear-gradient(rgba(34, 34, 34), rgba(0, 0, 0, 1));
    box-shadow: -25px 0px 10px -20px rgba(0, 100, 0, 1);
    z-index: 2;
    padding: .5em 0;
}

.business-card a{
    text-decoration: none;
}

.business-card h1 a{
    color: rgba(0, 100, 0, 1);
    font-size: 0.5em;
}

.business-card .bdesc{
    color: #aaa;
    padding: .5em;
}

.business-card ul{
    list-style: none;
}

.business-card .contacts{
    padding-top: .5em;
}

.business-card .contacts a{
    color: #aaa;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.business-card .addresses{
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(2px);
    width: 100%;
    height: 0;
    overflow: hidden;
    color: #aaa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
    transition: height .5s;
}

.business-card .addresses.active{
    height: 100%;
    padding: .5em;
}

.business-card .socials{
    display: flex;
}

.business-card .socials li{
    margin: 0.5em 0.3em;
}

.business-card img{
    display: inline-block;
    width: 34px;
    height: 34px;
}

@media screen and (max-width: 1200px){
    .business-grid{
        grid-template-columns: repeat(2, 49%);
    }
    .business-card{
        min-height: calc(9/16 * 47vw);
    }
}

@media screen and (max-width: 800px){
    .business-grid{
        grid-template-columns: 1fr;
    }
    .business-card{
        min-height: calc(9/16 * 90vw);
    }
}