/* css/record.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

.record-container {
    font-family: 'Noto Sans TC', sans-serif;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

/* Creamy white card style */
.record-card {
    background-color: #F8F9F0;
    border: 3px solid #C5A065;
    /* Gold/Light Brown border */
    border-radius: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 85%;
    max-width: 380px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.card-title {
    font-size: 1.5rem;
    /* ~24px */
    font-weight: 900;
    color: #4A3B32;
    /* Dark Brown */
    letter-spacing: 0.1em;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #887766;
    margin-top: 0.2rem;
    font-weight: 500;
}

/* Brown Button Style */
.btn-brown {
    background: linear-gradient(to bottom, #A67C00, #8B5E00);
    border: 2px solid #5E4000;
    color: white;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.8rem 0;
    width: 90%;
    margin: 0 auto 1.5rem auto;
    border-radius: 0.8rem;
    display: block;
    text-align: center;
    box-shadow: 0 4px 0 #5E4000;
    transition: transform 0.1s;
    font-size: 1.1rem;
}

.btn-brown:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #5E4000;
}

/* Reflection Text Area */
.reflection-box {
    width: 85%;
    margin: 0 auto 1.5rem auto;
    background-color: white;
    border: 2px solid #8EC5EB;
    /* Light Blue Border */
    border-radius: 1rem;
    padding: 1rem;
    height: 280px;
    /* Increased height */
}

.reflection-textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    outline: none;
    font-size: 1rem;
    color: #4A3B32;
    line-height: 1.6;
}

.reflection-textarea::placeholder {
    color: #ccc;
}

/* Modal Animations */
.gallery-slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Phone Modal Styles */
.phone-modal-overlay {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.phone-frame {
    width: 320px;
    height: 640px;
    background-color: #1a1a1a;
    border-radius: 40px;
    border: 8px solid #333;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Island / Notch */
.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background-color: black;
    border-radius: 12px;
    z-index: 50;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-header {
    padding: 30px 20px 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f8f8;
}

.phone-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    z-index: 50;
}

/* Certificate Styles (Hidden/Off-screen usually, used for generation) */
/* Certificate Styles (Hidden/Off-screen usually, used for generation) */
.certificate-container {
    width: 1080px;
    /* Mobile 1080p width */
    height: 1920px;
    /* Mobile 1080p height (9:16) */
    background-image: url('../學習歷程/學習歷程底.jpg');
    background-size: cover;
    /* Ensure it covers the area */
    background-position: center;
    position: absolute;
    top: -9999px;
    left: -9999px;
    padding: 120px 80px;
    /* Increased padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #4A3B32;
    z-index: -1;
}

.cert-title {
    font-size: 7rem;
    /* Scaled up */
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    color: #4A3B32;
    margin-top: 60px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cert-subtitle {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 5rem;
    letter-spacing: 0.15em;
    border-top: 5px solid #8B2323;
    padding-top: 2rem;
    width: 70%;
    text-align: center;
}

.cert-body {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cert-text {
    font-size: 2.8rem;
    line-height: 1.8;
    text-align: justify;
    font-weight: 500;
    padding: 0 2rem;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 3rem 2rem;
    width: 100%;
}

.cert-photo-frame {
    width: 450px;
    height: 600px;
    background-color: white;
    padding: 15px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    transform: rotate(-3deg);
}

.cert-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-stamp {
    width: 350px;
    height: 350px;
    transform: rotate(15deg);
    opacity: 0.9;
}

.cert-date {
    width: 100%;
    text-align: left;
    font-size: 2.2rem;
    color: #665544;
    padding-left: 2rem;
    padding-bottom: 2rem;
    font-weight: 700;
}