/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #2c2c2e;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    padding: 20px 0;
    border-bottom: 3px solid #007AFF;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 122, 255, 0.1);
}

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

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #007AFF;
    margin-bottom: 5px;
}

.tagline {
    font-size: 0.9rem;
    color: #8E8E93;
    font-style: italic;
}

.date-badge {
    background: #007AFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Section Styles */
section {
    margin-bottom: 60px;
    background: #1c1c1e;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a3a3c;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #007AFF;
    text-align: center;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: #8E8E93;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    border: 2px solid #007AFF;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #8E8E93;
    margin-bottom: 30px;
}

.birthday-info {
    display: inline-block;
    background: #007AFF;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
}

.birthday-date .label {
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.birthday-date .value {
    color: #ffffff;
}

/* Metrics Section */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.metric-card {
    background: #2c2c2e;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #3a3a3c;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #007AFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.2);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007AFF;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 0.9rem;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Market Watch & Weather Section */
.market-weather-section {
    background: #1c1c1e;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a3a3c;
    margin-bottom: 60px;
}

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.market-section, .weather-section {
    background: #2c2c2e;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #3a3a3c;
}

.ticker-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.ticker-item {
    background: #1c1c1e;
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 15px;
    align-items: center;
    border: 1px solid #3a3a3c;
}

.ticker-symbol {
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
    grid-row: 1 / 3;
}

.ticker-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    justify-self: end;
}

.ticker-change {
    font-size: 1rem;
    font-weight: bold;
    justify-self: end;
}

.ticker-change.up, .ticker-item.up .ticker-change {
    color: #34C759;
}

.ticker-change.down, .ticker-item.down .ticker-change {
    color: #FF3B30;
}

.ticker-desc {
    grid-column: 2 / 4;
    font-size: 0.85rem;
    color: #8E8E93;
    font-style: italic;
}

/* Weather Widget */
.weather-widget {
    text-align: center;
    margin-top: 20px;
}

.weather-location {
    font-size: 1.1rem;
    color: #007AFF;
    font-weight: bold;
    margin-bottom: 15px;
}

.weather-current {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.weather-desc {
    font-size: 1rem;
    color: #8E8E93;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.weather-detail {
    background: #1c1c1e;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #3a3a3c;
}

.weather-label {
    display: block;
    font-size: 0.8rem;
    color: #8E8E93;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weather-detail span:last-child {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007AFF;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-item {
    background: #2c2c2e;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #3a3a3c;
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    border-color: #007AFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.2);
}

.news-badge {
    background: #007AFF;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

.news-headline {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 15px;
    cursor: pointer;
}

.news-headline:hover {
    color: #007AFF;
}

.news-excerpt {
    color: #8E8E93;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    color: #6D6D70;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #3a3a3c;
    padding-top: 15px;
}

/* Interactive Section */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fun-button {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    border: none;
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 80px;
}

.fun-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0056CC 0%, #003D99 100%);
}

.fun-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.5rem;
}

.button-text {
    font-size: 1rem;
}

.fact-display {
    background: #2c2c2e;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #3a3a3c;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.fact-display.active {
    border-color: #007AFF;
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
}

/* Photos Section */
.photo-gallery {
    margin-bottom: 40px;
}

.photo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.photo-item {
    background: #2c2c2e;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #3a3a3c;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.photo-item:hover {
    border-color: #007AFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.family-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/* Message Section */
.message-card {
    background: linear-gradient(135deg, #2c2c2e 0%, #3a3a3c 100%);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid #007AFF;
    text-align: center;
}

.message-card p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
}

.signature {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007AFF !important;
    margin-top: 30px !important;
}

/* Sponsor Section */
.sponsor-section {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    padding: 30px 0;
    margin-top: 60px;
    border-top: 3px solid #005ABF;
    border-bottom: 3px solid #005ABF;
}

.sponsor-content {
    text-align: center;
    color: white;
}

.sponsor-text {
    margin-bottom: 10px;
}

.sponsor-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 5px;
}

.sponsor-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    display: block;
}

.sponsor-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: #1c1c1e;
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid #007AFF;
    margin-top: 0;
}

.footer p {
    color: #8E8E93;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-item {
        padding: 20px;
    }
    
    .section-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .market-weather-section {
        padding: 25px;
    }
    
    .market-section, .weather-section {
        padding: 20px;
    }
    
    .ticker-item {
        padding: 12px;
        gap: 6px 12px;
    }
    
    .ticker-symbol {
        font-size: 1rem;
    }
    
    .ticker-price {
        font-size: 1.1rem;
    }
    
    .weather-current {
        font-size: 2rem;
    }
    
    .weather-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .news-headline {
        font-size: 1.1rem;
    }
    
    .sponsor-name {
        font-size: 1.5rem;
    }
    
    .sponsor-tagline {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .photo-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .photo-item {
        aspect-ratio: 4/3;
    }
    
    .message-card {
        padding: 25px;
    }
    
    .message-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 20px;
    }
    
    .metric-number {
        font-size: 1.8rem;
    }
    
    .fun-button {
        padding: 15px;
        min-height: 70px;
    }
    
    .button-icon {
        font-size: 1.3rem;
    }
    
    .button-text {
        font-size: 0.9rem;
    }
    
    .news-item {
        padding: 15px;
    }
    
    .news-headline {
        font-size: 1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .market-weather-section {
        padding: 20px;
    }
    
    .market-section, .weather-section {
        padding: 15px;
    }
    
    .ticker-item {
        padding: 10px;
        gap: 5px 10px;
    }
    
    .ticker-symbol {
        font-size: 0.9rem;
    }
    
    .ticker-price {
        font-size: 1rem;
    }
    
    .ticker-change {
        font-size: 0.9rem;
    }
    
    .ticker-desc {
        font-size: 0.8rem;
    }
    
    .weather-current {
        font-size: 1.8rem;
    }
    
    .weather-location {
        font-size: 1rem;
    }
    
    .sponsor-name {
        font-size: 1.3rem;
    }
    
    .sponsor-tagline {
        font-size: 0.85rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.pulse {
    animation: pulse 2s infinite;
}

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