* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, 'Helvetica Neue', Helvetica, sans-serif;
    background: #2a2a2a;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(180deg, #e8e0d0 0%, #d4cabb 100%);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

/* Status Bar - iOS 6 Style */
.status-bar {
    background: linear-gradient(180deg, #464646 0%, #1a1a1a 50%, #000 100%);
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
    height: 20px;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.signal-bars {
    font-size: 8px;
    letter-spacing: -1px;
}

.carrier {
    font-weight: 500;
}

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

.battery {
    font-size: 10px;
}

/* Header - Green Glossy */
.header {
    background: linear-gradient(180deg, #a8d86a 0%, #6db33f 30%, #4a9f2e 70%, #3d8a26 100%);
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #2d6b1a;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 2px 4px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.4),
        0 -1px 0 rgba(255,255,255,0.2);
    font-family: Georgia, serif;
}

.header-icon {
    font-size: 24px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Segmented Control Bar - Leather */
.segmented-bar {
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #8b6914 0%, #6b4f0f 50%, #5a4210 100%);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px dashed #a07818;
    border-bottom: 2px dashed #3d2f0a;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        inset 0 -1px 0 rgba(255,255,255,0.1);
}

.segmented-control {
    display: flex;
    background: linear-gradient(180deg, #ddd 0%, #bbb 100%);
    border-radius: 6px;
    padding: 2px;
    box-shadow: 
        inset 0 1px 3px rgba(0,0,0,0.3),
        0 1px 0 rgba(255,255,255,0.2);
}

.segment-btn {
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    text-shadow: 0 1px 0 #fff;
    transition: all 0.15s ease;
}

.segment-btn.active {
    background: linear-gradient(180deg, #6db33f 0%, #4a8f2e 100%);
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 1px 2px rgba(0,0,0,0.2);
}

.toggle-switch {
    cursor: pointer;
}

.toggle-track {
    width: 56px;
    height: 28px;
    background: linear-gradient(180deg, #888 0%, #666 100%);
    border-radius: 14px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.2);
}

.toggle-icon {
    font-size: 12px;
    color: #ccc;
    z-index: 1;
}

.toggle-thumb {
    position: absolute;
    left: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(180deg, #fff 0%, #ddd 100%);
    border-radius: 50%;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 #fff;
    transition: left 0.2s ease;
}

.toggle-switch.dark .toggle-thumb {
    left: 30px;
}

/* Profile Section - Brown Leather */
.profile-section {
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #a0724a 0%, #7a5535 50%, #6b4a2d 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.1);
}

.profile-frame {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #8b6914 0%, #5a4210 100%);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 2px dashed #a07818;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #654321;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-family: Georgia, serif;
}

.profile-tagline {
    font-size: 13px;
    color: #e8d8c8;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    margin-top: 4px;
}

/* Content Area */
.content-area {
    padding: 12px;
    min-height: 300px;
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.03'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #f5f0e5 0%, #ebe5d8 100%);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Blog Card - Paper Style */
.blog-card {
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.05'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #faf8f2 0%, #f0ece2 100%);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.15),
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 #fff,
        inset 0 -1px 0 rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.2),
        0 8px 16px rgba(0,0,0,0.15),
        inset 0 1px 0 #fff;
}

.card-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(0,0,0,0.1);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #3e2723;
    font-family: Georgia, serif;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 12px;
    color: #6d5d4b;
    margin-top: 4px;
    line-height: 1.3;
}

/* Glossy Brown Button */
.read-btn {
    align-self: flex-start;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #b8864a 0%, #8b5a2b 40%, #704720 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.4);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.1s ease;
}

.read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
    border-radius: 6px 6px 0 0;
}

.read-btn:hover {
    background: linear-gradient(180deg, #c99555 0%, #9a6333 40%, #7d5025 100%);
}

.read-btn.pressed,
.read-btn:active {
    background: linear-gradient(180deg, #6b4520 0%, #5a3818 40%, #4a2e12 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.4),
        0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(1px);
}

/* Follow Section */
.follow-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.follow-card {
    background: 
        linear-gradient(180deg, #faf8f2 0%, #f0ece2 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.15),
        inset 0 1px 0 #fff;
}

.follow-title {
    font-size: 18px;
    font-weight: 700;
    color: #3e2723;
    font-family: Georgia, serif;
    margin-bottom: 8px;
}

.follow-text {
    font-size: 14px;
    color: #6d5d4b;
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-input {
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #c0b090;
    border-radius: 6px;
    background: linear-gradient(180deg, #f5f0e5 0%, #fff 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.email-input:focus {
    outline: none;
    border-color: #6db33f;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 2px rgba(109,179,63,0.3);
}

.subscribe-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(180deg, #6db33f 0%, #4a8f2e 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.subscribe-btn:hover {
    background: linear-gradient(180deg, #7dc44f 0%, #5aa03e 100%);
}

.subscribed-message {
    font-size: 16px;
    color: #4a8f2e;
    font-weight: 600;
    padding: 12px;
}

.social-follow {
    background: 
        linear-gradient(180deg, #faf8f2 0%, #f0ece2 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.15),
        inset 0 1px 0 #fff;
}

.social-title {
    font-size: 14px;
    font-weight: 600;
    color: #6d5d4b;
    margin-bottom: 12px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.social-btn.twitter {
    background: linear-gradient(180deg, #555 0%, #333 100%);
}

.social-btn.reddit {
    background: linear-gradient(180deg, #ff6314 0%, #cc4e10 100%);
}

/* Footer - Dark Leather */
.footer {
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #4a3828 0%, #3a2a1c 50%, #2a1e14 100%);
    padding: 16px;
    border-top: 2px dashed #5a4832;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 11px;
    color: #a09080;
    text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, #666 0%, #444 100%);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='0.05'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #faf8f2 0%, #f0ece2 100%);
    border-radius: 12px;
    padding: 20px;
    max-width: 360px;
    width: 100%;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 1px 0 #fff;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 28px;
    color: #6d5d4b;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.modal-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #3e2723;
    font-family: Georgia, serif;
    margin-bottom: 12px;
}

.modal-body {
    font-size: 14px;
    color: #5d4d3b;
    line-height: 1.6;
}

/* Dark Mode */
.app-container.dark-mode {
    background: linear-gradient(180deg, #2a2520 0%, #1a1512 100%);
}

.dark-mode .content-area {
    background: linear-gradient(180deg, #3a352d 0%, #2a2520 100%);
}

.dark-mode .blog-card,
.dark-mode .follow-card,
.dark-mode .social-follow {
    background: linear-gradient(180deg, #4a453d 0%, #3a352d 100%);
}

.dark-mode .card-title,
.dark-mode .follow-title {
    color: #f5f0e5;
}

.dark-mode .card-subtitle,
.dark-mode .follow-text,
.dark-mode .social-title {
    color: #c0b5a5;
}

/* Responsive */
@media (max-width: 420px) {
    .app-container {
        max-width: 100%;
    }
    
    .segment-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    .card-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .card-title {
        font-size: 14px;
    }
}

/* Shine animation for buttons */
@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.read-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}