/* Common Styles for Smart Firearm Insight App */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Phone Container */
.phone-container {
    width: 480px;
    height: 700px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
    border-radius: 30px;
    display: none;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.screen.active {
    display: flex;
}

.status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
}

.header {
    padding: 10px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation Bar Styles */
.top-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b6b;
}

.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    background: #ff6b6b;
    color: white;
}

.nav-menu-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

.nav-menu {
    position: fixed;
    top: 200px;
    right: 100px;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    min-width: 250px;
    display: none;
    z-index: 9998;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nav-menu.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-menu-item {
    display: block;
    padding: 12px 16px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-menu-item:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateX(5px);
}

.nav-menu-item.current {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-weight: 600;
}

.nav-section-title {
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.nav-section-title:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* Common Button Styles */
.back-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.header-action {
    color: #ff6b6b;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Common Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 25px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 25px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #a0a0a0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    border-radius: 25px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Common Card Styles */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend {
    font-size: 12px;
    color: #4ade80;
    margin-top: 5px;
}

/* Section Titles */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.section-icon {
    margin-right: 10px;
    font-size: 20px;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .phone-container {
        width: 100%;
        max-width: 480px;
        height: 100vh;
        max-height: 700px;
        border-radius: 0;
    }
    
    .nav-menu {
        right: 20px;
        top: 60px;
    }
}
