/*
Theme Name: Root Child
Theme URI: http://wpshop.biz/themes/root
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: root
Version: 1.0.0
*/

/* Общие стили */
.software-article {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

/* Заголовок софта */
.software-header {
    padding: 30px;
    background-color: #f9f9f9;
}

.entry-title {
    margin-top: 0;
    margin-bottom: 20px;
    word-break: break-word;
    font-size: 2.5em;
    text-align: left;
    font-weight: normal !important; /* Использовано !important в оригинале, но лучше избегать этого */
}

.software-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Изображение софта */
.software-image {
    flex: 0 0 200px;
}

.software-image img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.software-info {
    flex: 1;
}

/* Мета-информация */
.software-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.95em;
}

.developer {
    text-transform: uppercase;
}

/* Рейтинг и отзывы */
.rating {
    font-weight: bold;
}

.star {
    color: #FFD700;
    margin: 0 2px;
}

.votes {
    font-size: 0.8em;
    color: #666;
}

/* Кнопки действий */
.software-actions {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    width: 100%;
}

.btn-download {
    background-color: #0b5561;
    color: white;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.btn-download:hover {
    background-color: #0b5561;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Основные секции */
.entry-content, .system-requirements, .software-gallery, .youtube-video-container, .mod-features, .user-reviews, .vvedenie-content {
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.kak-ustanovit {
    padding: 0px 30px;
}

/* Системные требования */
.requirements-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.requirement-item {
    background-color: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.requirement-item:hover {
    transform: translateY(-2px);
}

.requirement-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.requirement-value {
    display: block;
    color: #333;
}

/* Кнопки скачивания */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f0f0;
    color: #333;
    margin-bottom: 0;
    font-size: 1em;
}

/* Стили для Google Play (оставлены для совместимости) */
.btn-google-play {
    background-color: #4CAF50;
    color: white;
}

.google-play-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.google-play-icon {
    width: 24px;
    height: 24px;
    background-image: url('img/google_play.webp');
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
}

.google-play-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.google-play-details {
    font-size: 0.8em;
}

.google-play-installs {
    color: rgba(255, 255, 255, 0.8);
}

/* Отзывы пользователей */
.user-reviews {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px 20px 20px;
    font-family: 'Roboto', sans-serif;
    color: #333;
    border-top: 1px solid #f0f0f0;
    margin-top: 30px;
}

.user-review {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.user-review:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.user-review::before,
.user-review::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #4285F4;
}

.user-review::before {
    top: -25px;
    left: -25px;
    transform: rotate(45deg);
}

.user-review::after {
    bottom: -25px;
    right: -25px;
    transform: rotate(45deg);
}

.review-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    position: relative;
    padding-left: 40px;
    z-index: 1;
}

.review-content::before {
    content: '\1F3AE';  /* Эмодзи игрового контроллера */
    font-size: 24px;
    position: absolute;
    left: 0;
    top: 0;
}

.user-reviews h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Видео YouTube */
.video-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.youtube-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    cursor: pointer;
}

.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.play-button span {
    color: white;
    font-size: 14px;
    text-align: center;
}

.youtube-video:hover .play-button {
    background-color: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

/* Галерея */
.software-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-image:hover img {
    transform: scale(1.05);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Улучшения для доступности */
.btn:focus,
.download-button:focus,
.gallery-image:focus {
    outline: 2px solid #0b5561;
    outline-offset: 2px;
}

/* Стили для связанных постов */
.post-cards-wrapper, .b-related {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.posts-container, .b-related__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -10px;
    margin-right: -10px;
}

.post-card {
    width: 100%;
    margin: 0 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e4e4e4;
}

.post-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #c9c9c9;
}

.post-card__link {
    display: flex;
    text-decoration: none;
    color: inherit;
    min-height: 260px;
}

.post-card__image {
    flex: 0 0 120px;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    background: none;
}

.post-card__image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 5px;
    padding: 5px;
    border-radius: 15px;
}

.post-card__content {
    flex: 1;
    padding: 15px;
}

.post-card__meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 1em;
    margin-bottom: 10px;
}

.post-card__meta-item {
    margin-right: 15px;
    margin-bottom: 5px;
}

.post-card__meta-item i {
    margin-right: 5px;
    color: #17A2B8;
}

.post-card__download {
    margin-top: 10px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.post-card__free-label {
    position: absolute;
    top: 15px;
    left: -30px;
    transform: rotate(-45deg);
    background-color: #FF4C43;
    color: #ffffff;
    padding: 5px 30px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Дополнительные стили */
.home-header {
    text-align: center;
}

body.sidebar-none .b-related__items, 
body.sidebar-none .posts-container--two-columns {
    margin: 0 auto !important;
}

a:has(> .post-card__content):hover,
a:has(> .post-card__content):focus,
a:has(> .post-card__content):active {
    color: inherit;
    text-decoration: none;
}

.post-card-related .post-card__link {
    min-height: 170px;
}

.b-related .post-card__image, 
.b-related .post-card__image img, 
.b-related .post-card__image .entry-meta, 
.b-related .thumb-wide {
    border-radius: 15px;
}

/* Виджеты */
.widget-article--compact { 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border 0.3s ease;
    border-radius: 8px;
    border: 1px solid #e4e4e4;
    overflow: hidden;
    padding: 15px;
}

.widget-article--compact:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #c9c9c9;
}

/* Стили для изображений в виджетах */
img.attachment-thumb-square.size-thumb-square.wp-post-image {
    border-radius: 8px;
}

/* Стили для иконок в виджетах */
.widget_archive ul li:before, 
.widget_categories ul li:before, 
.widget_meta ul li:before, 
.widget_nav_menu ul li:before, 
.widget_recent_comments ul li:before, 
.widget_recent_entries ul li:before {
    content: "\f07c";  /* Иконка папки */
}

/* Дополнительные стили */
.mod-info {
    text-transform: uppercase;
    text-align: center;
}

/* Стили для ссылок с Google Play контентом */
a:has(> .google-play-content):hover,
a:has(> .google-play-content):focus,
a:has(> .google-play-content):active {
    color: #ffffff;
    text-decoration: none;
}

/* Стили для блока с особенностями мода */
.mod-features {
    border: 2px solid #0b5561;
    border-radius: 10px;
    margin: 5px 20px;
}

/* Стили для логотипа сайта */
.site-logotype {
    margin-bottom: 5px;
}

.site-branding {
    padding-bottom: 5px;
}

/* Стили для категорий дочерних постов */
.post-child-categories {
    padding: 20px 30px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .btn, .btn-download {
        width: 100%;
        max-width: none;
        text-align: center;
        padding: 12px 15px;
        font-size: 1em;
    }

    .software-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .google-play-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .google-play-installs {
        margin-top: 5px;
    }

    .requirements-grid {
        grid-template-columns: 1fr 1fr;
    }

    .software-header {
        padding: 20px;
    }

    .software-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .entry-title {
        flex: 1;
        font-size: 2em;
        margin: 0;
        align-self: center;
        font-weight: normal !important;
    }

    .meta-item {
        margin-bottom: 5px;
        font-size: 0.9em;
    }

    .software-actions {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .post-card__link {
        flex-direction: column;
    }

    .post-card__image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .post-card__image img {
        height: auto;
        max-height: 200px;
        margin: 0 auto;
    }

    .entry-header {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.5em;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Улучшения для доступности */
.btn:focus,
.download-button:focus,
.gallery-image:focus {
    outline: 2px solid #0b5561;
    outline-offset: 2px;
}

/* Общий контейнер для блоков */
.tru-layout-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 920px;
    margin: 0px auto;
}

/* Стили для блока скачивания */
.tru-download-container {
    min-width: 300px;
    width: 90%;
}

.tru-title {
    font-size: 1.6em;
    margin-bottom: 20px;
    text-align: center;
}

.tru-download-button {
    display: flex;
    align-items: center;
    background-color: #17A2B8;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #055d6a;
}

.tru-download-button:hover {
    background-color: #055d6a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgb(255 255 255 / 20%);
    color: #ffffff;
}

.tru-download-icon {
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
    margin-right: 12px;
}

.tru-download-info {
    display: flex;
    flex-direction: column;
}

.tru-download-text {
    font-weight: bold;
    font-size: 1.2em;
}

.tru-download-size {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 2px;
}

.tru-torrent-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    background-color: #34495e;
    border-radius: 8px;
    padding: 15px;
}

.tru-stat-item {
    text-align: center;
    padding: 0 15px;
}

.tru-stat-label {
    font-size: 0.95em;
    color: #bdc3c7;
    display: block;
    margin-bottom: 5px;
}

.tru-stat-value {
    font-weight: bold;
    color: #ecf0f1;
    font-size: 1.3em;
}

.tru-downloading .tru-stat-value {
    color: #3498db;
}

.tru-seeding .tru-stat-value {
    color: #2ecc71;
}

/* Стили для блока с Торриком */
.tru-helper-container {
    min-width: 300px;
    width: 90%;
    color: #ecf0f1;
    padding-bottom: 20px;
    padding-top: 10px;
}

.tru-helper-image {
    width: 150px;
    height: auto;
    float: left;
    margin-right: 15px;
    margin-bottom: 10px;
}

.tru-helper-bubble {
    background-color: #2c3e50;
    border-radius: 10px;
    padding: 15px;
    margin-left: 165px;
}

.tru-helper-button {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tru-helper-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Медиа-запросы для адаптивности */

@media (max-width: 480px) {
    .tru-helper-container,
    .tru-download-container {
        padding: 15px;
    }
    
    .tru-helper-image {
        width: 80px;
    }
    
    .tru-helper-bubble {
        margin-left: 95px;
    }
    
    .tru-title {
        font-size: 1.4em;
    }
    
    .tru-download-button {
        padding: 10px 15px;
    }
    
    .tru-download-text {
        font-size: 1.1em;
    }
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.category-button:hover {
    background-color: #e0e0e0;
}


.b-share--post {border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    animation: fadeIn 0.5s ease-in-out;
}

.top-menu ul li a {
    color: #ffffff;
}

.top-menu ul li a:focus, .top-menu ul li a:hover {border-bottom: 1px solid rgb(255 255 255) }