/*
Theme Name: RasEngine
Theme URI: https://pornras.com
Author: Mert Cengiz
Author URI: https://pornras.com
Description: Premium Adult Theme with RasEngine v3.15 Control Panel.
Version: 3.15
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rasengine
*/

/* ============================================
   CSS RESET & VARIABLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary-cyan: #00b2ff;
    --primary-orange: #ff9000;
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-header: #0a0a0a;
    --text-white: #ffffff;
    --text-gray: #888888;
    --text-cyan: #00d4ff;
    --border-color: #222222;
    --grid-columns: 4;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   VIDEO GRID - MOFOS STYLE
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), 1fr);
    gap: 25px 15px;
}

.video-card {
    position: relative;
}

/* Thumbnail */
.video-card .thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
}

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

.video-card:hover .thumb img {
    transform: scale(1.05);
}

/* Duration */
.video-card .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}

/* Meta */
.video-card .meta {
    padding: 10px 0;
    position: relative;
}

/* Title */
.video-card .meta h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.video-card .meta h3 a {
    color: var(--text-white);
}

.video-card:hover .meta h3 a {
    color: var(--primary-cyan);
}

/* Actors - Cyan color like MOFOS */
.video-card .actors {
    font-size: 13px;
    color: var(--text-cyan);
    margin-bottom: 6px;
}

.video-card .actors a {
    color: var(--text-cyan);
}

.video-card .actors a:hover {
    text-decoration: underline;
}

/* Video Stats - Date, Views, Likes */
.video-card .video-stats {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-gray);
}

.video-card .video-stats i {
    margin-left: 3px;
    font-size: 10px;
}

/* Quality Badge */
.video-card .quality-badge {
    display: inline-block;
    background: #ff6b00;
    color: #000;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    margin-top: 6px;
    text-transform: uppercase;
}

/* ============================================
   CHANNEL GRID (Widget)
   ============================================ */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.channel-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-card);
}

.channel-card a {
    display: block;
    text-decoration: none;
}

.channel-thumb {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

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

.channel-card:hover .channel-thumb img {
    transform: scale(1.05);
}

.channel-info {
    padding: 10px 12px;
}

.channel-info h4 {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.channel-info span {
    color: var(--text-gray);
    font-size: 11px;
}

/* ============================================
   MODELS GRID (Widget)
   ============================================ */
.models-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.model-card {
    position: relative;
}

.model-card a {
    display: block;
    text-decoration: none;
}

.model-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-card);
}

.model-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.model-card:hover .model-thumb img {
    transform: scale(1.05);
}

.model-card h4 {
    color: var(--text-white);
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0 0 0;
    text-align: left;
}

.model-card:hover h4 {
    color: var(--primary-cyan);
}

/* ============================================
   HOMEPAGE WIDGET SECTIONS
   ============================================ */
.homepage-widget-section {
    margin-bottom: 40px;
}

.homepage-widget {
    margin-bottom: 0;
}

/* Channel/Model responsive */
@media (max-width: 1200px) {

    .channel-grid,
    .models-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {

    .channel-grid,
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {

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

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --grid-columns: 4;
    }
}

@media (max-width: 992px) {
    :root {
        --grid-columns: 3;
    }
}

@media (max-width: 768px) {
    :root {
        --grid-columns: 2;
    }

    .video-grid {
        gap: 15px 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --grid-columns: 1;
    }

    .video-grid {
        gap: 20px;
    }
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    background-size: cover;
    background-position: center;
}

.profile-header-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: -40px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-details {
    flex: 1;
    padding-bottom: 10px;
}

.profile-name {
    color: var(--text-white);
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-stats-line {
    color: var(--text-gray);
    font-size: 13px;
}

.profile-bio {
    color: #aaa;
    font-size: 13px;
    margin: 10px 0;
    max-width: 500px;
}

.profile-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.btn-edit:hover {
    background: #444;
}

.btn-subscribe {
    background: #cc0000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-subscribe:hover {
    background: #990000;
}

.btn-subscribe.subscribed {
    background: #333;
    color: #888;
}

/* Profile Tabs */
.profile-tabs {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-tab-item {
    display: inline-block;
    padding: 12px 20px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.profile-tab-item:hover {
    color: var(--text-white);
}

.profile-tab-item.active {
    color: var(--text-white);
    border-bottom-color: var(--primary-cyan);
}

/* ============================================
   CONTAINER & UTILITIES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding: 30px 0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    color: var(--text-white);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.view-all {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 600;
}

.view-all:hover {
    color: var(--text-white);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 13px;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs li a:hover {
    color: var(--primary-cyan);
}

.breadcrumbs .separator {
    color: #444;
    margin: 0 8px;
}

.breadcrumbs .bread-current {
    color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
}

/* ============================================
   SINGLE VIDEO PAGE
   ============================================ */
.single-video-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-player-container {
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Related */
.related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Mobile responsive for profile */
@media (max-width: 768px) {
    .profile-header-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -30px;
    }

    .profile-bio {
        max-width: 100%;
    }

    .profile-actions {
        justify-content: center;
    }
}