@font-face { font-family: 'font1'; src: url('https://file.garden/aXUfWdPgtglShqRb/fonts/Go%20around%20the%20books%202022.ttf')}
@font-face { font-family: 'font2'; src: url('https://file.garden/aXUfWdPgtglShqRb/fonts/Mikey.ttf')}
@font-face { font-family: 'font3'; src: url('https://file.garden/aXUfWdPgtglShqRb/fonts/imWeird.ttf')}
@font-face { font-family: 'font4'; src: url('https://file.garden/aXUfWdPgtglShqRb/fonts/SF-Pro.ttf')}



/* --- GLOBAL RESET & AESTHETICS --- */
* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #ffb7c5 #fff0f5;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffeef5; 
   background-image: url(https://i.pinimg.com/1200x/22/9f/97/229f97ca34ec5578622bbe2e702e8cc2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'font4', sans-serif;
}

/* --- IPAD CHASSIS (IMAGE BASE) --- */
.ipad-case {
    width: 980px;
    height: 680px;
    background-image: url('https://file.garden/aXUfWdPgtglShqRb/pngs/ipad.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 42px 115px 45px 115px; 
    border-radius: 0;
    box-shadow: none;
    border: none;
}


.ipad-case::before {
    content: none;
}

.camera {
    display: none;
}


.home-btn {
    position: absolute; 
    right: 13px;
    top: 50%; 
    transform: translateY(-50%);
    width: 55px; 
    height: 55px; 
    /* Make transparent */
    background: #00000000; 
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: none;
    z-index: 200;
}
.home-btn:active { transform: translateY(-50%) scale(0.95); }

.home-btn::after {
    content: none;
}

/* --- SCREEN --- */
.screen {
    width: 830px; height: 623px; background: #fff;
    background-image: url('https://i.pinimg.com/736x/21/82/c6/2182c6af1c28dc4b7aeb0d0781aa56ec.jpg'); 
    background-size: cover; border-radius: 4px; overflow: hidden;
    position: fixed; 
    border: none; 
    box-shadow: none;
    z-index: 10;
}


.status-bar {
    height: 28px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 15px; font-size: 13px; font-weight: 600; color: #555;
    z-index: 100; position: absolute; top: 0; left: 0; right: 0;
}

#home-screen {
    height: 100%; width: 100%; padding: 50px 30px 110px 30px; 
    display: grid; grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 1fr 1.5fr; gap: 20px; overflow-y: auto;
}

/* --- WIDGETS GENERIC --- */
.widget {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px; padding: 15px;
    box-shadow: 0 4px 15px rgba(226, 172, 185, 0.2);
    border: 2px solid white; 
    display: flex; flex-direction: column;
    backdrop-filter: blur(5px);
}

h2, h3 {
    font-family: 'Playfair Display', serif; color: #8c5e68;
    margin: 0 0 10px 0; font-weight: 700;
}

/* Welcome Widget */
.welcome-widget {
    grid-column: 1 / 2; grid-row: 1 / 2;
    flex-direction: row; 
    justify-content: center; align-items: center; text-align: left;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    gap: 15px;
}
.welcome-img {
    width: 65px; height: 65px; border-radius: 12px; 
    object-fit: cover; border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.welcome-text h2 { font-family: font1; font-size: 20px; font-style: italic; margin-bottom: 5px; }
.welcome-text p { font-size: 9px; color: #a0707a; margin: 0; }

/* Music Player */
.music-widget {
    grid-column: 2 / 3; grid-row: 1 / 2;
    padding: 12px;
    background: linear-gradient(to bottom, #fff, #fff0f5);
    justify-content: space-between;
}
.music-content { display: flex; align-items: center; gap: 10px; }
.album-wrapper {
    position: relative; width: 60px; height: 60px; flex-shrink: 0;
}
#music-cover {
    width: 100%; height: 100%; border-radius: 50%;
    object-fit: cover; border: 2px solid #ffb7c5;
    animation: spin 4s linear infinite; animation-play-state: paused;
}
.vinyl-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 12px; height: 12px; background: white; border-radius: 50%; border: 1px solid #ddd;
}
.music-info { overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
#music-title { font-weight: bold; font-size: 13px; color: #555; white-space: nowrap; }
#music-artist { font-size: 11px; color: #888; margin-top: 2px;}
.music-progress {
    width: 100%; height: 4px; background: #eee; border-radius: 10px;
    margin: 8px 0; overflow: hidden;
}
.bar-fill { width: 40%; height: 100%; background: #ffb7c5; border-radius: 10px; }
.music-progress {
    cursor: pointer; /* Makes it look clickable */
}
.music-controls { display: flex; justify-content: center; align-items: center; gap: 15px; }
.music-controls button {
    background: white; border: 1px solid #ffb7c5;
    color: #d88998; border-radius: 50%; width: 28px; height: 28px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(216, 137, 152, 0.2); transition: 0.2s;
}
#play-btn-container { width: 35px; height: 35px; background: #ffb7c5; color: white; border: none; font-size: 14px;}
.music-controls button:hover { transform: scale(1.1); }
.spinning { animation-play-state: running !important; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Status Widget */
.status-cafe-widget {
    grid-column: 3 / 4; grid-row: 1 / 2;
    background: #fff9fa; border: 2px dashed #ffb7c5;
    position: relative;
}
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
#statuscafe { font-family: 'font2', cursive; padding: 5px; }
#statuscafe-username { display: none; }
#statuscafe-content { font-size: 16px; color: #d88998; line-height: 1.3; }
.status-bow-img {
    position: absolute; bottom: -10px; right: -10px;
    width: 45px; height: auto;
    transform: rotate(-10deg);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* Currently Widget */
.currently-widget { grid-column: 1 / 2; grid-row: 2 / 3; }
.current-item { display: flex; align-items: center; margin-bottom: 15px; }
.img-container { margin-right: 12px; transform: none; }
.img-container img {
    width: 45px; height: 60px; object-fit: cover; display: block;
    border-radius: 8px; border: 1px solid #ffb7c5; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.progress-container { flex-grow: 1; }
.item-title { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 2px;}
.item-title i { color: #ffb7c5; margin-right: 4px;}
.item-subtitle { font-size: 13px; font-weight: bold; color: #555; display: block; margin-bottom: 4px;}
.progress-bar { height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.progress-fill.stripe {
    background: repeating-linear-gradient(45deg, #ffb7c5, #ffb7c5 8px, #ffcdd2 8px, #ffcdd2 16px);
    height: 100%; border-radius: 10px;
}

/* Updates Widget */
.updates-widget { grid-column: 2 / 3; grid-row: 2 / 3; }
.updates-scroll { overflow-y: scroll; height: 220px; padding-right: 5px; }
.update-entry { border-bottom: 1px dashed #ffb7c5; padding: 8px 0; font-size: 13px; color: #666; }
.update-date { font-weight: bold; color: #d88998; font-size: 11px; }

/* Weather Widget */
.weather-widget {
    grid-column: 3 / 4; grid-row: 2 / 3;
    background: linear-gradient(180deg, #fff0f5 0%, #fff 100%);
    justify-content: center; align-items: center; text-align: center;
}
.weather-icon {
    font-size: 48px; color: #ffd700; 
    text-shadow: 0 2px 5px rgba(255, 215, 0, 0.4);
    margin-bottom: 10px;
}
.weather-info { display: flex; flex-direction: column; }
.temp {
    font-family: 'Playfair Display', serif;
    font-size: 32px; color: #d88998; font-weight: bold;
    line-height: 1;
}
.condition { font-size: 14px; color: #888; margin-top: 5px; }
.location { font-size: 11px; color: #aaa; text-transform: uppercase; margin-top: 2px; letter-spacing: 1px; }

/* --- DOCK & ICONS --- */
.dock {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    height: 85px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(20px);
    border-radius: 28px; display: flex; align-items: center;
    padding: 0 20px; gap: 25px; z-index: 100;
    border: 1px solid rgba(255,255,255,0.5);
}
.app-icon {
    width: 60px; height: 60px; border-radius: 14px; 
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    color: white; font-size: 26px; position: relative;
    border: 2px solid rgba(255,255,255,0.8); overflow: hidden;
}
.app-icon::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0));
    border-radius: 12px 12px 60% 60% / 12px 12px 20px 20px;
}
.app-icon:hover { transform: translateY(-5px) scale(1.05); }
.icon-about { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.icon-library { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.icon-blog { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.icon-diary { background: linear-gradient(135deg, rgba(255, 213, 221, 0.92) 0%, rgba(226, 156, 170, 0.81) 100%); }
.icon-tv { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #fff; }




/* --- APP SCREENS --- */
.app-screen {
    position: absolute; top: 28px; left: 0; width: 100%; height: calc(100% - 28px);
    background: white; z-index: 50; padding: 40px; display: none;
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); overflow-y: auto;
}
.app-screen.no-padding { padding: 0; }
.app-screen.active { display: block; }
.app-frame { width: 100%; height: 100%; border: none; background: #fff; }

.content-container { max-width: 700px; margin: 0 auto; position: relative; }
.content-container h1 { font-family: 'font1'; color: #d88998; font-size: 36px; border-bottom: 2px solid #ffe4e1; padding-bottom: 10px;}
.content-container p {font-family: font2; line-height: 1.6; color: #555; }
.diary-date{ font-family: font3; color:#f8d3d9;}
.sticker {
    position:absolute; width: auto; height: auto; max-width: 80px;
    z-index: 10; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1));
}
.blog-preview-card {
    background: #fff0f5; padding: 20px; border-radius: 15px;
    margin-bottom: 15px; border: 1px solid #ffe4e1;
}
.read-more-btn {
    display: inline-block; margin-top: 10px; padding: 8px 16px;
    background: #ffb7c5; color: white; text-decoration: none;
    border-radius: 20px; font-size: 12px; font-weight: bold; transition: background 0.2s;
}
.read-more-btn:hover { background: #d88998; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

#app-browser {
    z-index: 200 !important; 
    background: #fff;
    position: absolute; 
    top: 28px; 
    left: 0; 
    width: 100%; 
    height: calc(100% - 28px);
    display: none;
}

#app-browser.active {
    display: block;
}
/* --- CLOSE BUTTON --- */
.browser-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    
  
    background: linear-gradient(135deg, #ffc1e3 0%, #ff9eb0 100%);
    
 
    border: 3px solid white; 
    
    /* Text Styling */
    color: white;
    font-family: 'font4', sans-serif;
    font-weight: 700;
    font-size: 13px;
    
    /* Shape */
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    
   
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
    
  
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    
  
    display: flex;
    align-items: center;
    gap: 6px;
}

.browser-close-btn:hover {
    transform: translateY(-3px) scale(1.05) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
    background: linear-gradient(135deg, #ffb7c5 0%, rgba(254, 225, 241, 0.87) 100%); /* Swap gradient direction */
}

.browser-close-btn:active {
    transform: translateY(1px) scale(0.95);
}
.custom-link {
    color: #ffb7c5;
    font-weight: bold;
    text-decoration: underline dotted #d88998;
    cursor: pointer; 
}

.custom-link:hover {
    color: #d88998;
    text-decoration: underline solid #ffb7c5;
}


.loader-overlay.hidden {
    opacity: 0;
}
/* --- TV APP LAYOUT --- */
#app-tv {
    background-color: #e2b3bc; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tv-header {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Quicksand', sans-serif;
    color: #ff85c1;
}

/* --- TV APP CONTAINER --- */
#app-tv {
    display: none; 
    background-color: #ffeef5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Close Button */
.tv-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #ffb7c5; padding: 10px 20px; border-radius: 25px;
    text-decoration: none; font-weight: 600; font-size: 13px;
    border: 2px solid #ffb7c5;
    box-shadow: 0 4px 10px rgba(255, 183, 197, 0.3);
    transition: all 0.2s ease; z-index: 100; backdrop-filter: blur(5px);
    display: flex; align-items: center; gap: 8px;
}
.tv-close-btn:hover {
    background-color: #ffb7c5; color: white;
    transform: translateY(-2px);
}


/* Header (Kitty Image) */
.tv-header {
    text-align: center;
    margin-bottom: 10px;
}

.kitty-tv img {
    width: 250px;

}

/* --- THE TV SET --- */
.tv-container {
    position: relative;
    width: 260px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -70px;
}

/* The Black Screen Area */
.tv-screen {
    position: absolute;
    z-index: 5;
    background: #000;
   
    top: 30%;
    left: 13%;
    width: 77%;
    height: 47%;
    border-radius: 5px;
    overflow: hidden;
}

#tv-player {
    width: 100%;
    height: 100%;
}

/* Static Noise Overlay */
#tv-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif');
    background-size: cover;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.2s;
}

/* The PNG Frame */
.tv-frame {
    width: 100%;
    position: relative;
    z-index: 10;
    pointer-events: none; 
}

/* --- CONTROLS --- */
.tv-controls {
    margin-top: -40px;
    display: flex;
    gap: 8px;
   
}

.tv-controls button {
    background: #fff;
    border: 1px solid #ffc1e3;
    color: #ff85c1;
    border-radius: 10px;
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
    font-family: inherit; 
    transition: 0.2s;
    
}

.tv-controls button:hover {
    background: #ffc1e3;
    color: white;
}

.kitty-tv {
    position: relative;
    top: -90px;
}
.mind-link {
    position: fixed;
    top: 20px;
    right: 25px;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: #000; 
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 9999; 
    opacity: 0.7;
    transition: all 0.4s ease;
}


.mind-link:hover {
    opacity: 1;
    letter-spacing: 2px;
    font-style: italic;
    cursor: alias; 
}