/*
Theme Name: Sandesham App Theme
Theme URI: https://news.sandeshamtimes.com
Author: Sandesham Times AI
Description: A mobile-first theme designed to mirror the Android App experience and drive app installs.
Version: 1.0
text-domain: sandesham
*/

:root {
    --primary: #E60000;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --font-heading: 'Ramabhadra', sans-serif;
    --font-body: 'Noto Sans Telugu', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header & Logo */
.app-header {
    background: #FFF;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 22px;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Feed (Index) - Flat List Style */
.feed-container,
.single-container {
    max-width: 700px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Clean List Style (No Cards) */
.news-card {
    background: transparent;
    border-radius: 0;
    margin-bottom: 0px;
    box-shadow: none;
    border-bottom: 1px solid #E5E7EB;
    /* Light Gray Separator */
    padding: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.news-card-link:last-child .news-card {
    border-bottom: none;
}

.news-card-link {
    display: block;
    padding: 0 16px;
    transition: background 0.1s;
}

.news-card-link:active {
    background: #F3F4F6;
}

/* Thumbnails (Right Side or Left Side - Fixed Size) */
.card-image {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    order: 2;
    /* Image on right for modern news feel, or 0 for left */
}

.card-content {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-category {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.card-title {
    font-size: 18px;
    /* Consistent Font Size */
    font-family: var(--font-body);
    /* Use readable body font for list titles too */
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
    color: #111;
}

.card-meta {
    font-size: 13px;
    color: #666;
}

/* Single Post Typography Consistency */
.single-container {
    background: #FFF;
    min-height: 100vh;
}

.article-body {
    padding: 20px 16px;
}

.article-title {
    font-size: 24px;
    /* Slightly larger for main title */
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #000;
    font-family: var(--font-heading);
}

.article-content {
    font-size: 19px;
    /* Increased for readability */
    line-height: 1.6;
    color: #222;
}

.article-content p {
    margin-bottom: 20px;
}

/* Google Play Badge */
.google-play-badge {
    height: 60px;
    width: auto;
    display: inline-block;
    transition: transform 0.2s;
}

.google-play-badge:active {
    transform: scale(0.96);
}

/* Footer (Custom Dark Design) */
.site-footer {
    background: #000;
    color: #e5e7eb;
    /* gray-300 */
    padding: 60px 20px 100px;
    font-family: var(--font-body);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    height: 48px;
    margin-bottom: 24px;
    display: inline-block;
}

.recruitment-box {
    color: #facc15;
    /* yellow-400 */
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #1f2937;
    /* gray-800 */
}

.contact-name {
    display: block;
    margin-top: 12px;
    color: #FFF;
    font-weight: 700;
}

.contact-phone {
    font-size: 0.9em;
    color: #9ca3af;
    margin-left: 8px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-socials {
        text-align: right;
    }

    .social-icons {
        justify-content: flex-end;
    }
}

.footer-heading {
    color: #FFF;
    font-weight: 700;
    border-bottom: 1px solid #374151;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.footer-address p {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.footer-address i {
    color: #3b82f6;
    margin-right: 10px;
    margin-top: 4px;
}

.footer-address a {
    color: inherit;
    transition: color 0.2s;
}

.footer-address a:hover {
    color: #FFF;
}

.social-icons {
    display: flex;
    gap: 16px;
    font-size: 24px;
    margin-top: 10px;
}

.social-icon {
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-fb {
    color: #2563eb;
}

.social-yt {
    color: #dc2626;
}

.social-wa {
    color: #22c55e;
}

.social-tg {
    color: #0ea5e9;
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #1f2937;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.footer-bottom a {
    color: #d1d5db;
    margin: 0 4px;
}

.developer-credit {
    margin-top: 8px;
    font-size: 12px;
}

.developer-credit a {
    color: #f97316;
    /* orange-500 */
}


/* Smart Banner */
.app-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    border-top: 1px solid #EEE;
}

.banner-content {
    display: flex;
    align-items: center;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-right: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.banner-text h4 {
    margin: 0;
    font-size: 15px;
    color: #000;
}

.banner-text p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #666;
}

.btn-install {
    background: var(--primary);
    color: #FFF;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}