/* ===============================
   Apple.com Clone Styles
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #f5f5f7;
}

/* ===============================
   Header / Navigation
   =============================== */

header {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

nav a:hover {
    text-decoration: underline;
}

main {
    margin-top: 60px;
}

/* ===============================
   Hero Section
   =============================== */

.hero {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
}

.hero .buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Primary site buttons */
.site-btn {
    background-color: #0071e3;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.site-btn:hover {
    background-color: #0056cc;
}

/* ===============================
   Products Section
   =============================== */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product {
    text-align: center;
    padding: 40px;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #86868b;
}

/* ===============================
   Footer
   =============================== */

footer {
    background-color: #f5f5f7;
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

footer p {
    font-size: 12px;
}

/* ===============================
   Notification System (Apple-like)
   =============================== */

:root {
    --notification-bg: #ffffff;
    --notification-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
                           0 0 0 1px rgba(0, 0, 0, 0.05);
    --notification-border-radius: 13px;
    --notification-blur: blur(20px);
    --text-color: #1d1d1f;
    --title-color: #1d1d1f;
    --timestamp-color: #86868b;
    --animation-duration: 0.3s;
    --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fallback if backdrop-filter unsupported */
@supports not (backdrop-filter: blur(20px)) {
    :root {
        --notification-bg: rgba(255, 255, 255, 0.95);
    }
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;

    display: flex;
    align-items: flex-start;
    padding: 16px 20px;

    background: var(--notification-bg);
    backdrop-filter: var(--notification-blur);
    -webkit-backdrop-filter: var(--notification-blur);

    border-radius: var(--notification-border-radius);
    box-shadow: var(--notification-shadow);
    color: var(--text-color);

    max-width: 380px;
    width: calc(100vw - 40px);
    z-index: 1000;
    cursor: pointer;

    transition:
        opacity var(--animation-duration) var(--animation-easing),
        transform var(--animation-duration) var(--animation-easing);
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.notification.mobile {
    width: 90%;
    padding: 20px;
    font-size: 16px;
}

/* Icon */
.notification .app-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 12px;
    background: #007aff;
    flex-shrink: 0;
}

.notification .app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Content */
.notification .content {
    flex: 1;
}

.notification .header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.notification .app-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--title-color);
}

.notification .timestamp {
    font-size: 12px;
    color: var(--timestamp-color);
}

.notification .title {
    font-weight: 500;
    margin-bottom: 2px;
}

.notification .message {
    margin-bottom: 20px;
}

/* Notification Buttons */
.notification .buttons {
    display: flex;
    gap: 8px;
}

.notification .btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.notification .btn.cancel {
    background: #ffffff;
    color: #007aff;
    border: 1px solid #c6c6c8;
}

.notification .btn.cancel:hover {
    background: #f2f2f7;
}

.notification .btn.view {
    background: #007aff;
    color: #ffffff;
}

.notification .btn.view:hover {
    background: #0056cc;
}

/* Close Button */
.notification .close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--timestamp-color);
    cursor: pointer;
    margin-left: 8px;
}

.notification.mobile .close-btn {
    display: none;
}

/* Safe area support */
@supports (padding: max(0px)) {
    .notification.mobile {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* ===============================
   Responsive Design
   =============================== */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero .buttons {
        flex-direction: column;
        align-items: center;
    }

    .products {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }
}
