/* ============================================================
   INTERNET EXPLORER APP
   Browser chrome
   ============================================================ */

.ie-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ie-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: var(--win95-bg);
    border-bottom: 1px solid var(--win95-gray);
    flex-shrink: 0;
}

.ie-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--win95-bg);
    border: none;
    box-shadow:
        inset -1px -1px var(--win95-black),
        inset 1px 1px var(--win95-white),
        inset -2px -2px var(--win95-gray),
        inset 2px 2px var(--win95-light);
    width: 36px;
    height: 24px;
    padding: 0;
    cursor: default;
    outline: none;
    font-size: 14px;
}

.ie-nav-btn:active {
    box-shadow:
        inset -1px -1px var(--win95-white),
        inset 1px 1px var(--win95-black),
        inset -2px -2px var(--win95-light),
        inset 2px 2px var(--win95-gray);
    padding: 1px 0 0 1px;
}

.ie-nav-btn:disabled {
    color: var(--win95-gray);
    text-shadow: 1px 1px 0 var(--win95-white);
}

.ie-address-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: var(--win95-bg);
    border-bottom: 1px solid var(--win95-gray);
    flex-shrink: 0;
}

.ie-address-label {
    font-size: var(--win95-font-size);
    white-space: nowrap;
    font-weight: bold;
}

.ie-address-input {
    flex: 1;
    background: var(--win95-white);
    box-shadow:
        inset -1px -1px var(--win95-white),
        inset 1px 1px var(--win95-gray),
        inset -2px -2px var(--win95-light),
        inset 2px 2px var(--win95-dark);
    padding: 2px 4px;
    font-family: var(--win95-font);
    font-size: var(--win95-font-size);
    border: none;
    outline: none;
    height: 20px;
}

.ie-go-btn {
    min-width: 40px;
    min-height: 20px;
    font-size: 10px;
}

.ie-content {
    flex: 1;
    overflow: auto;
    background: #ffffff;
    border: none;
}

.ie-loading {
    text-align: center;
    padding: 20px;
    color: var(--win95-gray);
    font-style: italic;
}

/* IE throbber (animated logo) */
.ie-throbber {
    width: 24px;
    height: 24px;
    margin-left: auto;
    background: #0078d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-family: serif;
    font-size: 16px;
}

.ie-throbber.loading {
    animation: ie-spin 1s linear infinite;
}

@keyframes ie-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   AMAZON '95 PAGE
   Earth's Biggest Bookstore
   ============================================================ */

.amazon-page {
    background: #ffffff;
    color: #000000;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    line-height: 1.4;
    padding: 0;
}

.amazon-page a {
    color: #0000CC;
    text-decoration: underline;
}

.amazon-page a:hover {
    color: #CC0000;
}

/* Amazon Header */
.amazon-header {
    background: #232f3e;
    color: #ffffff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.amazon-logo {
    font-size: 26px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    letter-spacing: -1px;
    color: #ffffff;
}

.amazon-logo-tagline {
    font-size: 12px;
    font-style: italic;
    color: #cccccc;
    display: block;
    margin-top: 2px;
}

.amazon-cart-info {
    font-size: 13px;
    color: #ffffff;
    background: #37475a;
    padding: 6px 12px;
    border: 1px solid #556677;
    text-align: center;
    white-space: nowrap;
}

/* Amazon Nav Bar */
.amazon-nav {
    background: #37475a;
    padding: 5px 16px;
    border-bottom: 2px solid #e47911;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.amazon-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.amazon-nav a:hover {
    color: #e47911;
    text-decoration: underline;
}

/* Amazon Search Bar */
.amazon-search {
    background: #f0f0f0;
    padding: 10px 16px;
    border-bottom: 1px solid #cccccc;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.amazon-search label {
    font-weight: bold;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
}

.amazon-search input[type="text"] {
    flex: 1;
    min-width: 120px;
    max-width: 300px;
    padding: 3px 6px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    border: 2px inset #cccccc;
    background: #ffffff;
}

.amazon-search button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 3px 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.amazon-search button:active {
    border-style: inset;
}

/* Amazon Body Content */
.amazon-body {
    padding: 12px 16px;
}

.amazon-welcome {
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #cccccc;
    margin-bottom: 12px;
}

.amazon-welcome b {
    font-size: 18px;
}

/* Amazon Spotlight Section */
.amazon-spotlight {
    border: 2px solid #cccccc;
    background: #fffff0;
    padding: 12px;
    margin-bottom: 16px;
}

.amazon-spotlight-title {
    font-size: 18px;
    font-weight: bold;
    color: #232f3e;
    margin-bottom: 10px;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 4px;
}

.amazon-spotlight-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.amazon-spotlight-cover {
    width: 90px;
    height: 130px;
    background: #8B0000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    padding: 8px;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    flex-shrink: 0;
    line-height: 1.2;
    border: 1px solid #5a0000;
}

.amazon-spotlight-info {
    flex: 1;
    min-width: 150px;
}

.amazon-spotlight-info .book-title {
    font-size: 16px;
    font-weight: bold;
    color: #0000CC;
}

.amazon-spotlight-info .book-author {
    font-size: 13px;
    color: #333333;
    margin: 4px 0;
}

.amazon-spotlight-info .book-price {
    font-size: 15px;
    font-weight: bold;
    color: #CC0000;
    margin: 4px 0;
}

.amazon-spotlight-info .book-desc {
    font-size: 13px;
    color: #333333;
    margin-top: 6px;
}

/* Amazon Section Headers */
.amazon-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #232f3e;
    border-bottom: 2px solid #e47911;
    padding-bottom: 4px;
    margin: 16px 0 12px 0;
}

/* Amazon Book Grid */
.amazon-book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.amazon-book {
    border: 1px solid #cccccc;
    background: #ffffff;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.amazon-book-cover {
    width: 70px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    padding: 6px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.25);
    line-height: 1.2;
    border: 1px solid rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.amazon-book .book-title {
    font-size: 13px;
    font-weight: bold;
    color: #0000CC;
    line-height: 1.2;
}

.amazon-book .book-author {
    font-size: 11px;
    color: #555555;
}

.amazon-book .book-price {
    font-size: 14px;
    font-weight: bold;
    color: #CC0000;
}

/* Amazon Cart Button */
.amazon-cart-btn {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 3px 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    color: #000000;
}

.amazon-cart-btn:active {
    border-style: inset;
}

.amazon-cart-btn:hover {
    background: #d0d0d0;
}

/* Amazon Added-to-cart message */
.amazon-added-msg {
    background: #ffffcc;
    border: 1px solid #cccc00;
    color: #333300;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 4px 8px;
    margin-top: 4px;
    text-align: center;
    animation: amazon-fade 2s forwards;
}

@keyframes amazon-fade {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Amazon Footer */
.amazon-footer {
    background: #f0f0f0;
    border-top: 1px solid #cccccc;
    padding: 10px 16px;
    text-align: center;
    font-size: 11px;
    color: #666666;
    font-family: Arial, Helvetica, sans-serif;
}

/* Amazon 404 / Error Page */
.ie-error-page {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Times New Roman', Times, serif;
    color: #000000;
}

.ie-error-page h1 {
    font-size: 36px;
    color: #CC0000;
    margin-bottom: 10px;
}

.ie-error-page p {
    font-size: 14px;
    margin: 8px 0;
}

.ie-error-page .error-url {
    font-family: 'Courier New', monospace;
    background: #f0f0f0;
    padding: 4px 8px;
    border: 1px solid #cccccc;
    display: inline-block;
    margin: 10px 0;
    word-break: break-all;
}

.ie-error-page hr {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 20px auto;
    width: 80%;
}
