.ams-container{

    max-width:1300px;

    margin:40px auto;

    padding:0 20px;

}

.ams-search-card{

    background:#fff;

    border-radius:24px;

    padding:35px;

    box-shadow:
    0 15px 45px
    rgba(0,0,0,.08);

}

.ams-header{

    text-align:center;

    margin-bottom:35px;

}

.ams-header h2{

    margin:0;

    font-size:32px;

    font-weight:700;

}

.ams-header p{

    color:#777;

    margin-top:10px;

}

.ams-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:20px;

}

.ams-field{

    display:flex;

    flex-direction:column;

}

.ams-field label{

    margin-bottom:10px;

    font-size:14px;

    font-weight:600;

}

.ams-field input{

    height:55px;

    border:1px solid #e4e8f0;

    border-radius:14px;

    padding:0 16px;

    font-size:15px;

    transition:.3s;

}

.ams-field input:focus{

    outline:none;

    border-color:#4f46e5;

    box-shadow:
    0 0 0 4px
    rgba(79,70,229,.12);

}

.ams-search-btn{

    width:100%;

    margin-top:25px;

    height:58px;

    border:none;

    border-radius:16px;

    background:#4f46e5;

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.ams-search-btn:hover{

    transform:translateY(-2px);

}

#ams-results{

    margin-top:35px;

}

.ams-result-card{

    background:#fff;

    border-radius:22px;

    padding:24px;

    margin-bottom:20px;

    box-shadow:
    0 10px 35px
    rgba(0,0,0,.06);

    transition:.3s;

}

.ams-result-card:hover{

    transform:translateY(-4px);

}

.ams-result-top h3{

    margin:0;

    font-size:20px;

}

.ams-meta{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    margin:18px 0;

}

.ams-meta span{

    background:#f5f7fb;

    padding:8px 14px;

    border-radius:12px;

    font-size:14px;

}

.ams-open-page{

    border:none;

    background:#4f46e5;

    color:#fff;

    height:48px;

    padding:0 24px;

    border-radius:12px;

    cursor:pointer;

}

.ams-license-required{

    direction:rtl;

    max-width:900px;

    margin:40px auto;

    padding:24px;

    border-radius:16px;

    background:#fff7ed;

    color:#c2410c;

    text-align:center;

    font-weight:700;

}

.ams-match-title{

    margin:8px 0;

    font-size:16px;

    font-weight:700;

    color:#111827;

}

.ams-match-author{

    margin-bottom:8px;

    font-size:14px;

    color:#374151;

}

.ams-match-snippet{

    margin:12px 0 18px;

    padding:14px 16px;

    background:#f9fafb;

    border-radius:12px;

    color:#4b5563;

    line-height:1.9;

    font-size:14px;

}

.ams-loading{

    text-align:center;

    padding:50px;

}

.ams-spinner{

    width:55px;

    height:55px;

    border:4px solid #ddd;

    border-top-color:#4f46e5;

    border-radius:50%;

    animation:
    amsSpin 1s linear infinite;

    margin:auto;

}

@keyframes amsSpin{

    to{

        transform:rotate(360deg);

    }

}


.ams-empty{

    text-align:center;

    background:#fff;

    padding:50px;

    border-radius:20px;

    box-shadow:
    0 10px 30px
    rgba(0,0,0,.05);

}

@media(max-width:991px){

    .ams-grid{

        grid-template-columns:
        repeat(2,1fr);

    }

}

@media(max-width:600px){

    .ams-grid{

        grid-template-columns:1fr;

    }

    .ams-search-card{

        padding:20px;

    }

    .ams-header h2{

        font-size:24px;

    }

}


.ams-search-wrapper{

    max-width:1200px;

    margin:40px auto;

    direction:rtl;

}

.ams-search-card{

    background:#fff;

    border-radius:24px;

    padding:35px;

    box-shadow:
    0 12px 40px rgba(0,0,0,.06);

}

.ams-search-header{

    text-align:center;

    margin-bottom:30px;

}

.ams-search-header h2{

    margin:0;

    font-size:32px;

}

.ams-search-header p{

    margin-top:10px;

    color:#6b7280;

}

.ams-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:20px;

}

.ams-field label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

.ams-field input{

    width:100%;

    height:52px;

    border:1px solid #ddd;

    border-radius:14px;

    padding:0 15px;

}

.ams-search-btn{

    margin-top:25px;

    width:100%;

    height:54px;

    border:none;

    border-radius:16px;

    background:#2563eb;

    color:#fff;

    font-size:16px;

    cursor:pointer;

}


#ams-results{

    margin-top:30px;

}

.ams-result-card{

    background:#fff;

    border-radius:20px;

    padding:25px;

    margin-bottom:20px;

    box-shadow:
    0 8px 30px rgba(0,0,0,.05);

}

.ams-result-top{

    margin-bottom:15px;

}

.ams-result-top h3{

    margin:0;

    font-size:22px;

}

.ams-meta{

    display:flex;

    gap:12px;

    flex-wrap:wrap;

    margin-bottom:20px;

}

.ams-meta span{

    background:#f3f4f6;

    border-radius:999px;

    padding:8px 14px;

    font-size:13px;

}

.ams-open-page{

    border:none;

    background:#10b981;

    color:#fff;

    padding:12px 18px;

    border-radius:12px;

    cursor:pointer;

}


.ams-loading{

    text-align:center;

    padding:60px;

}

.ams-spinner{

    width:48px;

    height:48px;

    border:4px solid #eee;

    border-top:4px solid #2563eb;

    border-radius:50%;

    animation:spin .8s linear infinite;

    margin:auto;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

