/* Global styles for the reading app prototype */
:root {
    --primary-color: #1aad19;
    --secondary-color: #f8f8f8;
    --text-color: #333;
    --light-text: #999;
    --border-color: #e6e6e6;
    --bg-color: #ffffff;
    --accent-color: #07c160;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --highlight-color: #f2f9f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    color: var(--text-color);
    line-height: 1.6;
    padding: 30px;
}

/* Prototype container */
.prototype-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.prototype-title {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 32px;
}

.prototype-description {
    text-align: center;
    margin-bottom: 40px;
    color: var(--light-text);
    font-size: 18px;
}

/* Phone device styling */
.phone-container-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 30px;
}

.phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-label {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
}

.phone-device {
    position: relative;
    width: 375px;
    height: 812px;
    background: var(--bg-color);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    border: 8px solid #1a1a1a;
    position: relative;
}

.phone-notch {
    position: absolute;
    width: 180px;
    height: 30px;
    background-color: #1a1a1a;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 100;
}

/* Status bar */
.status-bar {
    height: 44px;
    width: 100%;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    color: #000;
    font-weight: 600;
}

.status-bar-time {
    padding-left: 10px;
}

.status-bar-icons {
    padding-right: 10px;
}

.status-bar-icons i {
    margin-left: 5px;
}

/* iframe */
.phone-device iframe {
    width: 100%;
    height: calc(100% - 44px);
    margin-top: 44px;
    border: none;
}

/* Dark mode */
.dark-mode {
    --text-color: #f8f8f8;
    --light-text: #a8a8a8;
    --border-color: #444;
    --bg-color: #1a1a1a;
    --secondary-color: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --highlight-color: #293329;
}

/* Responsive design */
@media (max-width: 1200px) {
    .phone-container-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .phone-device {
        width: 320px;
        height: 695px;
    }
    
    .prototype-title {
        font-size: 24px;
    }
    
    .prototype-description {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    body {
        padding: 10px;
    }
    
    .prototype-container {
        padding: 10px;
    }
    
    .phone-device {
        width: 280px;
        height: 600px;
        border-radius: 30px;
    }
}