/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #1A237E 0%, #5C6BC0 100%);
    --primary-color: #3F51B5;
    --primary-light-color: #C5CAE9;
    --secondary-color: #764ba2;
    --error-color: #F44336;
    --error-light-color: #FFCDD2;
    --success-color: #4CAF50;
    --success-light-color: #C8E6C9;
    --text-color: #424242; /*242424*/
    --text-dark: #333;
    --text-light: #666;
    --text-white: #fff;
    --bg-light: #f8f9fa;
    --bg-white: #fff;
    --bg-dark: #2d3436;
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 30px rgba(0, 0, 0, 0.1);
    --border-light: #f0f0f0;
    --border-dark: #4a4a4a;
    --cafe-color: #00c853;
    --myket-color: #2196f3;
    --view-all-color: #5C6BC0;
    --cafe-hover: #00a844;
    --myket-hover: #1976d2;
    --view-all-hover: #3F51B5;
    --border-radius-lg: 50px;
    --border-radius-md: 20px;
    --border-radius-sm: 25px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'YekanBakh', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Chat Button Component */
.chat-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button svg {
    width: 30px;
    height: 30px;
    fill: var(--text-white);
}

/* Hero Section */
.hero {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: 60px 0;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero__text {
    flex: 1;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-align: center;
}

.hero__subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    text-align: center;
}

.hero__card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    grid-template-columns: 120px auto;
    display: grid;
    padding: 10px;
}
.hero__card * {
    margin: auto;
}

.hero__description {
    font-size: 0.9rem;
    text-justify: inter-character;
    line-height: 1.7rem;
    text-align:justify;
}

.hero__logo-img {
    max-width: 120px;
    border-radius: 25%;
}

/* Main Content */
.main-content {
    margin-bottom: 50px;
    margin-top: 40px;
}

/* Category Component */
.category {
    margin-bottom: 50px;
}

.category__header {
    margin-bottom: 25px;
}

.category__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.category__title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.category__description {
    color: var(--text-light);
    font-size: 1rem;
}

.category__footer {
    margin-top: 15px;
    text-align: left;
}

.category__link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.category__link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Apps Grid Component */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* App Card Component */
.app-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.app-card--featured {
    border: 2px solid var(--primary-color);
}

.app-card__logo {
    width: 100px;
    height: 100px;
    margin: 0px auto 20px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    overflow: hidden;
}

.app-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.app-card__buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Component */
.btn {
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.btn--cafe {
    background-color: var(--cafe-color);
    color: var(--text-white);
}

.btn--cafe:hover {
    background-color: var(--cafe-hover);
}

.btn--myket {
    background-color: var(--myket-color);
    color: var(--text-white);
}

.btn--myket:hover {
    background-color: var(--myket-hover);
}

.btn--view-all {
    background-color: var(--view-all-color);
    color: var(--text-white);
}

.btn--view-all:hover {
    background-color: var(--view-all-hover);
}

/* View All */
.view-all a {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* ایجاد ستون‌های خودکار */
    background-color: rgba(255, 255, 255,0.25);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}
.view-all a * {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* ایجاد ستون‌های خودکار */
    padding: inherit;
    text-align: center;
}


/* Footer Component */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 0 30px;
    margin-top: 60px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 30px;
    margin-bottom: 40px;
}

.footer__section {
    /* Empty by design */
}

.footer__title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer__title:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer__text {
    color: #b2bec3;
    line-height: 1.8;
    justify-items: center;
}

.footer__link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__small {
    color: #b2bec3;
    font-size: 0.9rem;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-dark);
}

.footer__copyright {
    color: #b2bec3;
    font-size: 0.9rem;
}
/*Licences*/
.licences_card {
    background: #fafafa;
    border: 1px solid #e5e7f0;
    border-radius: var(--border-radius-md);
    width: fit-content;
}
.category_merge{
    display: inline-block;
    margin-right: 25px;
    margin-left: 25px;
}
.category_merge:first-child{
    margin-right: unset;
}
.category_merge:last-child{
    margin-left: unset;
}