/*
 * Mobile Preview Styles
 * Samsung Device Frame with Full Mobile Experience
 */

/* Mobile Preview Container */
.mobile-preview-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #022C22 0%, #0a4d3d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.back-to-site {
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--gold-primary);
    color: var(--bg-dark);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.back-to-site:hover {
    background: var(--gold-secondary);
    transform: translateY(-2px);
}

/* Samsung Device Frame */
.mobile-device {
    width: 380px;
    height: 780px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.device-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-camera {
    width: 10px;
    height: 10px;
    background: #222;
    border-radius: 50%;
    margin-left: 8px;
}

.device-speaker {
    width: 40px;
    height: 4px;
    background: #222;
    border-radius: 2px;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #022C22;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

/* Mobile Status Bar */
.mobile-status-bar {
    height: 45px;
    background: rgba(2, 44, 34, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 12px;
    color: var(--diamond-white);
    position: relative;
    z-index: 1000;
}

.status-time {
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 6px;
}

/* Mobile App Header (Always Visible) */
.mobile-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(2, 44, 34, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1500;
}

.mobile-app-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-app-header .app-logo {
    font-size: 20px;
    color: var(--gold-primary);
}

.mobile-app-header .app-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--diamond-white);
    font-family: 'Playfair Display', serif;
}

.mobile-app-header .mobile-menu-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-app-header .mobile-menu-btn:hover,
.mobile-app-header .mobile-menu-btn:active {
    background: rgba(212, 175, 55, 0.1);
}

/* Mobile Content Area */
.mobile-content {
    height: calc(100% - 45px - 55px - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-dark);
    position: relative;
}

/* Hide scrollbar but keep functionality */
.mobile-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-content::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 2px;
}

/* Splash Screen */
.mobile-splash-screen {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: calc(100% - 45px);
    background: linear-gradient(135deg, #022C22 0%, #0a4d3d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: auto;
}

.mobile-splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    font-size: 60px;
    color: var(--gold-primary);
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.splash-title {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--diamond-white);
    margin-bottom: 10px;
    text-align: center;
}

.splash-tagline {
    font-size: 14px;
    color: var(--gold-secondary);
    letter-spacing: 2px;
}

.splash-loader {
    margin-top: 40px;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(250, 204, 21, 0.2);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Dashboard/Home Screen */
.mobile-home {
    padding: 20px 15px 80px;
}

.mobile-home.hidden {
    display: none;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.mobile-header-left h2 {
    font-size: 22px;
    color: var(--diamond-white);
    margin: 0;
}

.mobile-header-left p {
    font-size: 12px;
    color: rgba(236, 254, 255, 0.7);
    margin: 0;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Cards */
.mobile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

.mobile-card h3 {
    font-size: 18px;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.mobile-card p {
    font-size: 14px;
    color: rgba(236, 254, 255, 0.8);
    margin: 0;
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.action-btn {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(212, 175, 55, 0.2) 100%);
    transform: translateY(-2px);
}

.action-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.action-label {
    font-size: 13px;
    color: var(--diamond-white);
    font-weight: 500;
}

/* Mobile Drawer Menu */
.mobile-drawer {
    position: absolute;
    top: 100px;
    left: -280px;
    width: 280px;
    height: calc(100% - 100px);
    background: rgba(2, 44, 34, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.drawer-overlay {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.drawer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.drawer-logo-icon {
    font-size: 30px;
    color: var(--gold-primary);
}

.drawer-logo-text h3 {
    font-size: 18px;
    color: var(--diamond-white);
    margin: 0;
}

.drawer-tagline {
    font-size: 11px;
    color: var(--gold-secondary);
    letter-spacing: 1px;
}

.drawer-menu {
    padding: 15px 0;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--diamond-white);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drawer-menu-item:hover,
.drawer-menu-item.active {
    background: rgba(250, 204, 21, 0.1);
    border-left: 3px solid var(--gold-primary);
}

.drawer-menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.drawer-menu-label {
    font-size: 15px;
    font-weight: 500;
}

/* Bottom Navigation Tabs */
.mobile-bottom-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: rgba(236, 254, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-item.active {
    color: var(--gold-primary);
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.tab-label {
    font-size: 11px;
    font-weight: 500;
}

/* Mobile Screens */
.mobile-screen {
    display: none;
    padding: 20px 15px 80px;
    min-height: 100%;
}

.mobile-screen.active {
    display: block;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.screen-back-btn {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

.screen-title {
    font-size: 20px;
    color: var(--diamond-white);
    margin: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.2);
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    color: var(--diamond-white);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-price {
    font-size: 13px;
    color: var(--gold-primary);
    font-weight: 600;
}

/* Plans Screen */
.plan-card {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
}

.plan-header {
    text-align: center;
    margin-bottom: 15px;
}

.plan-name {
    font-size: 20px;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 28px;
    color: var(--diamond-white);
    font-weight: 700;
}

.plan-features {
    list-style: none;
    margin: 15px 0;
}

.plan-features li {
    font-size: 13px;
    color: rgba(236, 254, 255, 0.9);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.plan-features li:before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

.plan-btn {
    width: 100%;
    background: var(--gold-primary);
    color: var(--bg-dark);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-btn:hover {
    background: var(--gold-secondary);
}

/* Contact Form */
.mobile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    color: var(--diamond-white);
    font-weight: 500;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: var(--diamond-white);
    font-size: 14px;
    font-family: var(--font-sans);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--gold-secondary);
}

/* About/Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--gold-primary);
    padding: 15px;
    border-radius: 8px;
}

.info-item h4 {
    font-size: 15px;
    color: var(--gold-primary);
    margin-bottom: 6px;
}

.info-item p {
    font-size: 13px;
    color: rgba(236, 254, 255, 0.8);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-device {
        width: 360px;
        height: 740px;
    }
    
    .mobile-preview-page {
        padding: 20px 10px;
    }
    
    .back-to-site {
        top: 10px;
        left: 10px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .mobile-device {
        width: calc(100vw - 40px);
        height: calc(100vh - 80px);
        max-width: 400px;
        max-height: 800px;
    }
    
    .back-to-site {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
        width: fit-content;
    }
    
    .mobile-preview-page {
        display: block;
        padding: 20px;
    }
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

button, a {
    -webkit-user-select: none;
    user-select: none;
}
