/* Import the same fonts */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;600&display=swap');

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

body {
    font-family: 'Kalam', cursive;
    background: radial-gradient(ellipse at center, #4a3426 0%, #2a1810 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Page container */
.page-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Single diary page */
.diary-page-single {
    background: #FFF5E6;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

/* Page texture (reused from main styles) */
.page-texture {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: 
        repeating-linear-gradient(0deg, 
            transparent,
            transparent 28px,
            #E5D4B1 28px,
            #E5D4B1 29px);
    pointer-events: none;
}

.page-content {
    position: relative;
    padding: 40px;
    z-index: 1;
}

/* Typography */
.page-title {
    font-family: 'Caveat', cursive;
    font-size: 36px;
    color: #6D1F42;
    text-align: center;
    margin-bottom: 30px;
    transform: rotate(-1deg);
}

.handwritten {
    font-size: 18px;
    line-height: 30px;
    color: #3D2817;
    margin-bottom: 20px;
}

h2 {
    font-family: 'Caveat', cursive;
    font-size: 24px;
    color: #25533F;
    margin: 20px 0 15px;
    transform: rotate(-0.5deg);
}

/* About page specific styles */
.polaroid-photo {
    width: 200px;
    margin: 20px auto 30px;
    background: white;
    padding: 10px 10px 40px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.polaroid-photo:hover {
    transform: rotate(0deg) scale(1.05);
}

.photo-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #F4BEAE 0%, #FFB8D1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.photo-caption {
    text-align: center;
    margin-top: 10px;
    font-family: 'Caveat', cursive;
    color: #3D2817;
}

.interests-list {
    list-style: none;
    padding-left: 20px;
}

.interests-list li {
    margin: 10px 0;
    font-size: 16px;
    color: #3D2817;
    transform: rotate(0.3deg);
}

.interests-list li:nth-child(odd) {
    transform: rotate(-0.5deg);
}

/* Currently into grid */
.current-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.current-item {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.current-item:hover {
    transform: translateY(-3px) rotate(-1deg);
}

.current-item span {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-item p {
    margin-top: 5px;
    font-size: 14px;
}

.current-item.food {
    background: #F4BEAE;
    color: #6D1F42;
}

.current-item.music {
    background: #FFB8D1;
    color: #6D1F42;
}

.current-item.aesthetic {
    background: #D3B6D3;
    color: #25533F;
}

.current-item.activities {
    background: #B8CEE8;
    color: #25533F;
}

/* Decorative elements */
.washi-tape {
    position: absolute;
    height: 25px;
    background: repeating-linear-gradient(
        45deg,
        #52A5CE,
        #52A5CE 10px,
        #B8CEE8 10px,
        #B8CEE8 20px
    );
    opacity: 0.6;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.washi-top {
    width: 150px;
    top: 20px;
    right: 50px;
    transform: rotate(5deg);
}

.sticker {
    position: absolute;
    font-size: 30px;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

.sticker-heart {
    top: 80px;
    right: 60px;
    transform: rotate(15deg);
}

.doodle-flower {
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 40px;
    height: 40px;
    border: 3px solid #AFAB23;
    border-radius: 50% 50% 0 50%;
    transform: rotate(45deg);
    opacity: 0.3;
}

/* Back button */
.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background: #6D1F42;
    color: #FFF5E6;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
    background: #8B2F4F;
}

/* Blog page styles */
.blog-entries {
    margin-top: 30px;
}

.blog-entry {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    position: relative;
    transform: rotate(-0.5deg);
}

.blog-entry:nth-child(even) {
    transform: rotate(0.5deg);
}

.entry-date {
    font-size: 14px;
    color: #876029;
    margin-bottom: 10px;
}

.entry-title {
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #6D1F42;
    margin-bottom: 10px;
}

.entry-content {
    font-size: 16px;
    line-height: 28px;
    color: #3D2817;
}

/* Gallery styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    aspect-ratio: 1;
    background: white;
    padding: 8px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease;
}

.gallery-item:nth-child(1) { --rotation: -3deg; }
.gallery-item:nth-child(2) { --rotation: 2deg; }
.gallery-item:nth-child(3) { --rotation: -1deg; }
.gallery-item:nth-child(4) { --rotation: 3deg; }
.gallery-item:nth-child(5) { --rotation: -2deg; }

.gallery-item:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F4BEAE 0%, #D3B6D3 50%, #B8CEE8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

/* Music page styles */
.music-list {
    margin-top: 30px;
}

.music-item {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #FFB8D1 0%, #FF7BAC 100%);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.music-item:hover {
    transform: translateX(10px);
}

.music-icon {
    font-size: 30px;
}

.music-details {
    flex: 1;
}

.song-title {
    font-weight: 700;
    font-size: 18px;
}

.artist-name {
    font-size: 14px;
    opacity: 0.9;
}

/* Links page styles */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.link-card {
    padding: 20px;
    background: white;
    border: 3px solid var(--border-color, #52A5CE);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #3D2817;
    transition: all 0.3s ease;
    position: relative;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

.link-card::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    color: var(--border-color, #52A5CE);
}

/* Responsive design */
@media (max-width: 768px) {
    .page-content {
        padding: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .current-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}